]> git.saurik.com Git - wxWidgets.git/commitdiff
Use _strdup under WinCE/eVC++
authorJulian Smart <julian@anthemion.co.uk>
Sat, 9 Oct 2004 19:56:46 +0000 (19:56 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Sat, 9 Oct 2004 19:56:46 +0000 (19:56 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29758 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/xpmdecod.cpp

index 18597dd3c17c161df68cadf86f0090ff2ebbde79..5d873d8ee93f9acc2d2a11bf4fcbad7c9ad0b295 100644 (file)
@@ -550,7 +550,11 @@ static bool GetRGBFromName(const char *inname, bool *isNone,
         return true;
     }
 
+#ifdef __WXWINCE__
+    name = _strdup(inname);
+#else
     name = strdup(inname);
+#endif
 
     // theRGBRecords[] has no names with spaces, and no grey, but a
     // lot of gray...