From e761df38aac7a16ab993fff1d4a6c216c14fef77 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Sat, 9 Oct 2004 19:56:46 +0000 Subject: [PATCH] Use _strdup under WinCE/eVC++ git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29758 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/xpmdecod.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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... -- 2.50.0