]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/xpmdecod.cpp
Readd wxStringList::Add when wxUSE_STL=1, for compatibility with
[wxWidgets.git] / src / common / xpmdecod.cpp
index f3cd26aa0be35fbbc85e4f8400a2d3da69b10a6a..b97af0c98b6d13711c27690fd290733f19247999 100644 (file)
@@ -551,7 +551,13 @@ static bool GetRGBFromName(const char *inname, bool *isNone,
         return TRUE;
     }
 
+#ifdef __WXWINCE__
+    // TODO: is this right? How come it compiles on other
+    // platforms?
+    name = (char*) wxStrdup((wxChar*) inname);
+#else
     name = wxStrdup(inname);
+#endif
 
     // theRGBRecords[] has no names with spaces, and no grey, but a
     // lot of gray...