- Fix some redefinition warnings caused by our headers' suckyness
authorStefan Ginsberg <stefanginsberg@gmail.com>
Sun, 13 Sep 2009 21:23:54 +0000 (21:23 +0000)
committerStefan Ginsberg <stefanginsberg@gmail.com>
Sun, 13 Sep 2009 21:23:54 +0000 (21:23 +0000)
svn path=/trunk/; revision=43041

rosapps/applications/net/ncftp/libncftp/syshdrs.h
rosapps/applications/net/ncftp/ncftp/syshdrs.h
rosapps/applications/net/ncftp/sio/syshdrs.h

index 302240d..344db2e 100644 (file)
@@ -31,7 +31,9 @@
 #      include <sys/types.h>
 #      include <sys/stat.h>
 #      include <fcntl.h>
 #      include <sys/types.h>
 #      include <sys/stat.h>
 #      include <fcntl.h>
+#      undef strcasecmp
 #      define strcasecmp stricmp
 #      define strcasecmp stricmp
+#      undef strncasecmp
 #      define strncasecmp strnicmp
 #      define sleep WinSleep
 #      ifndef S_ISREG
 #      define strncasecmp strnicmp
 #      define sleep WinSleep
 #      ifndef S_ISREG
index 618eaf6..3a4d639 100644 (file)
@@ -44,7 +44,9 @@
 #      include <fcntl.h>
 #      include <signal.h>
 #      include <assert.h>
 #      include <fcntl.h>
 #      include <signal.h>
 #      include <assert.h>
+#      undef strcasecmp
 #      define strcasecmp stricmp
 #      define strcasecmp stricmp
+#      undef strncasecmp
 #      define strncasecmp strnicmp
 #      define sleep WinSleep
 #      ifndef S_ISREG
 #      define strncasecmp strnicmp
 #      define sleep WinSleep
 #      ifndef S_ISREG
index f4483d2..d9c6513 100644 (file)
@@ -32,7 +32,9 @@
 #      include <sys/types.h>
 #      include <sys/stat.h>
 #      include <fcntl.h>
 #      include <sys/types.h>
 #      include <sys/stat.h>
 #      include <fcntl.h>
+#      undef strcasecmp
 #      define strcasecmp stricmp
 #      define strcasecmp stricmp
+#      undef strncasecmp
 #      define strncasecmp strnicmp
 #      define sleep(a) Sleep(a * 1000)
 #      ifndef S_ISREG
 #      define strncasecmp strnicmp
 #      define sleep(a) Sleep(a * 1000)
 #      ifndef S_ISREG