summaryrefslogtreecommitdiffstats
path: root/PC
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2009-01-11 09:43:55 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2009-01-11 09:43:55 (GMT)
commiteefda27e97271f61b669410f7f6554466045f52a (patch)
treec27662b0bde1e40b10317f71808a67705e9513cc /PC
parentb3b7d859b3c282ee3b573899ba831852642bb18d (diff)
downloadcpython-eefda27e97271f61b669410f7f6554466045f52a.zip
cpython-eefda27e97271f61b669410f7f6554466045f52a.tar.gz
cpython-eefda27e97271f61b669410f7f6554466045f52a.tar.bz2
Issue #4895: Use _strdup on Windows CE.
Diffstat (limited to 'PC')
-rw-r--r--PC/pyconfig.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/PC/pyconfig.h b/PC/pyconfig.h
index 255554a..3719586 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 <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.