From eefda27e97271f61b669410f7f6554466045f52a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Sun, 11 Jan 2009 09:43:55 +0000 Subject: [PATCH] Issue #4895: Use _strdup on Windows CE. --- Misc/NEWS | 2 ++ PC/pyconfig.h | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/Misc/NEWS b/Misc/NEWS index d5f5b21e813..d5336ff2df3 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -297,6 +297,8 @@ Tools/Demos Build ----- +- Issue #4895: Use _strdup on Windows CE. + - Issue #4472: "configure --enable-shared" now works on OSX - Issues #4728 and #4060: WORDS_BIGEDIAN is now correct in Universal builds. diff --git a/PC/pyconfig.h b/PC/pyconfig.h index 255554ad9e6..37195863f64 100644 --- a/PC/pyconfig.h +++ b/PC/pyconfig.h @@ -88,6 +88,12 @@ WIN32 is still required for the locale module. #define USE_SOCKET #endif +/* CE6 doesn't have strdup() but _strdup(). Assume the same for earlier versions. */ +#if defined(MS_WINCE) +# include +# define strdup _strdup +#endif + #ifdef MS_WINCE /* Python uses GetVersion() to distinguish between * Windows NT and 9x/ME where OS Unicode support is concerned.