[Python-checkins] r68528 - in python/branches/py3k: Misc/NEWS PC/pyconfig.h

martin.v.loewis python-checkins at python.org
Sun Jan 11 10:45:11 CET 2009


Author: martin.v.loewis
Date: Sun Jan 11 10:45:11 2009
New Revision: 68528

Log:
Merged revisions 68527 via svnmerge from 
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r68527 | martin.v.loewis | 2009-01-11 10:43:55 +0100 (So, 11 Jan 2009) | 2 lines
  
  Issue #4895: Use _strdup on Windows CE.
........


Modified:
   python/branches/py3k/   (props changed)
   python/branches/py3k/Misc/NEWS
   python/branches/py3k/PC/pyconfig.h

Modified: python/branches/py3k/Misc/NEWS
==============================================================================
--- python/branches/py3k/Misc/NEWS	(original)
+++ python/branches/py3k/Misc/NEWS	Sun Jan 11 10:45:11 2009
@@ -248,6 +248,8 @@
 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.

Modified: python/branches/py3k/PC/pyconfig.h
==============================================================================
--- python/branches/py3k/PC/pyconfig.h	(original)
+++ python/branches/py3k/PC/pyconfig.h	Sun Jan 11 10:45:11 2009
@@ -88,6 +88,12 @@
 #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.


More information about the Python-checkins mailing list