]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed a multiple define problem for strnicmp and stricmp by using the definition...
authorGeorge Tasker <gtasker@allenbrook.com>
Sun, 7 Nov 1999 02:03:37 +0000 (02:03 +0000)
committerGeorge Tasker <gtasker@allenbrook.com>
Sun, 7 Nov 1999 02:03:37 +0000 (02:03 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4415 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/db.h

index c624086c265f5f26356fb374a851c322f47b9604..200fec58b406b3af68217569b582f89fcb98db01 100644 (file)
        #include <sqlext.h>
 #endif
 
-#ifdef __UNIX__
-#   ifndef strnicmp 
-#      define strnicmp strncasecmp 
-#   endif 
-#   ifndef stricmp 
-#      define stricmp strcasecmp 
-#   endif 
-#else 
-#   include <io.h> 
+#if wxMAJOR_VERSION == 2
+       #include "utils.h"
+#else
+       #ifdef __UNIX__
+       #   ifndef strnicmp 
+       #      define strnicmp strncasecmp 
+       #   endif 
+       #   ifndef stricmp 
+       #      define stricmp strcasecmp 
+       #   endif 
+       #else 
+       #   include <io.h> 
+       #endif
 #endif
 
 enum           enumDummy               {enumDum1};