]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #4895: Use _strdup on Windows CE.
authorMartin v. Löwis <martin@v.loewis.de>
Sun, 11 Jan 2009 09:43:55 +0000 (09:43 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Sun, 11 Jan 2009 09:43:55 +0000 (09:43 +0000)
Misc/NEWS
PC/pyconfig.h

index d5f5b21e81303547500c4686cc21410a151645d5..d5336ff2df3d58f0d6c97306b025a1f95131de41 100644 (file)
--- 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.
index 255554ad9e65d525707c29e41b14b3622efef723..37195863f643f9c7cc8d9c6938994e835f7f896d 100644 (file)
@@ -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 <stdlib.h>
+#  define strdup _strdup
+#endif
+
 #ifdef MS_WINCE
 /* Python uses GetVersion() to distinguish between
  * Windows NT and 9x/ME where OS Unicode support is concerned.