Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e97637d

Browse files
committed
Merged revisions 68527 via svnmerge from
svn+ssh://[email protected]/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. ........
1 parent a9b54c7 commit e97637d

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

Misc/NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,8 @@ Tools/Demos
248248
Build
249249
-----
250250

251+
- Issue #4895: Use _strdup on Windows CE.
252+
251253
- Issue #4472: "configure --enable-shared" now works on OSX
252254

253255
- 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)