freebsd-ports/devel/titano/files/gcc3-patch-src_projects.cc
Alexey Dokuchaev bad8d0a212 - Update to 0.0.7 and unbreak
- Fix dependencies
- Respect C{C,XX} and C[XX]FLAGS
- Fix spelling typo in pkg-descr, kill dots/space at EOLs
- Utilize DATADIR in pkg-plist
- Take maintainership
2005-04-13 11:47:35 +00:00

22 lines
634 B
C++

--- src/projects.cc.orig Sat Dec 9 23:13:32 2000
+++ src/projects.cc Thu Apr 7 19:10:08 2005
@@ -100,13 +100,13 @@
int pos = name.rfind('.');
if(pos != name.npos){
- if(!name.compare(".h",pos,2))
+ if(!name.compare(pos,2,".h"))
res = C_HEADER;
- if(!name.compare(".c",pos,2)||
- !name.compare(".C",pos,2)||
- !name.compare(".cc",pos,3)||
- !name.compare(".cpp",pos,4)||
- !name.compare(".cxx",pos,4))
+ if(!name.compare(pos,2,".c")||
+ !name.compare(pos,2,".C")||
+ !name.compare(pos,3,".cc")||
+ !name.compare(pos,4,".cpp")||
+ !name.compare(pos,4,".cxx"))
res = C_SOURCE;
};