]> git.saurik.com Git - wxWidgets.git/commitdiff
Eliminated a VC++ 8 warning
authorJulian Smart <julian@anthemion.co.uk>
Tue, 17 Jan 2006 19:10:48 +0000 (19:10 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Tue, 17 Jan 2006 19:10:48 +0000 (19:10 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36938 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/wxchar.h

index ff62d28c56118a37a379ba1f6260a0d074e5f24d..091886694238f70fdee1abdace8d261358236ba8 100644 (file)
@@ -57,7 +57,9 @@
 
 /* Almost all compiler have strdup(), but not quite all: CodeWarrior under Mac */
 /* and VC++ for Windows CE don't provide it */
 
 /* Almost all compiler have strdup(), but not quite all: CodeWarrior under Mac */
 /* and VC++ for Windows CE don't provide it */
-#if !(defined(__MWERKS__) && defined(__WXMAC__)) && !defined(__WXWINCE__)
+#if defined(__VISUALC__) && __VISUALC__ >= 1400
+    #define wxStrdupA _strdup
+#elif !(defined(__MWERKS__) && defined(__WXMAC__)) && !defined(__WXWINCE__)
     /* use #define, not inline wrapper, as it is tested with #ifndef below */
     #define wxStrdupA strdup
 #endif
     /* use #define, not inline wrapper, as it is tested with #ifndef below */
     #define wxStrdupA strdup
 #endif