X Tutup
Skip to content

Commit 4dd763b

Browse files
author
martin.v.loewis
committed
Issue #4895: Use _strdup on Windows CE.
git-svn-id: http://svn.python.org/projects/python/trunk@68527 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent aed3c7e commit 4dd763b

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

Misc/NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,8 @@ Tools/Demos
297297
Build
298298
-----
299299

300+
- Issue #4895: Use _strdup on Windows CE.
301+
300302
- Issue #4472: "configure --enable-shared" now works on OSX
301303

302304
- Issues #4728 and #4060: WORDS_BIGEDIAN is now correct in Universal builds.

PC/pyconfig.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,12 @@ WIN32 is still required for the locale module.
8888
#define USE_SOCKET
8989
#endif
9090

91+
/* CE6 doesn't have strdup() but _strdup(). Assume the same for earlier versions. */
92+
#if defined(MS_WINCE)
93+
# include <stdlib.h>
94+
# define strdup _strdup
95+
#endif
96+
9197
#ifdef MS_WINCE
9298
/* Python uses GetVersion() to distinguish between
9399
* Windows NT and 9x/ME where OS Unicode support is concerned.

0 commit comments

Comments
 (0)
X Tutup