From: Julian Smart Date: Sat, 9 Oct 2004 19:56:46 +0000 (+0000) Subject: Use _strdup under WinCE/eVC++ X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/e761df38aac7a16ab993fff1d4a6c216c14fef77 Use _strdup under WinCE/eVC++ git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29758 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/xpmdecod.cpp b/src/common/xpmdecod.cpp index 18597dd3c1..5d873d8ee9 100644 --- a/src/common/xpmdecod.cpp +++ b/src/common/xpmdecod.cpp @@ -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...