[Python-checkins] r68173 - in python/trunk: Misc/NEWS Modules/cPickle.c
martin.v.loewis
python-checkins at python.org
Fri Jan 2 21:40:15 CET 2009
Author: martin.v.loewis
Date: Fri Jan 2 21:40:14 2009
New Revision: 68173
Log:
Issue #4051: Prevent conflict of UNICODE macros in cPickle.
Modified:
python/trunk/Misc/NEWS
python/trunk/Modules/cPickle.c
Modified: python/trunk/Misc/NEWS
==============================================================================
--- python/trunk/Misc/NEWS (original)
+++ python/trunk/Misc/NEWS Fri Jan 2 21:40:14 2009
@@ -286,6 +286,8 @@
Extension Modules
-----------------
+- Issue #4051: Prevent conflict of UNICODE macros in cPickle.
+
- Issue #4228: Pack negative values the same way as 2.4 in struct's L format.
- Issue #1040026: Fix os.times result on systems where HZ is incorrect.
Modified: python/trunk/Modules/cPickle.c
==============================================================================
--- python/trunk/Modules/cPickle.c (original)
+++ python/trunk/Modules/cPickle.c Fri Jan 2 21:40:14 2009
@@ -18,6 +18,14 @@
#define HIGHEST_PROTOCOL 2
/*
+ * Note: The UNICODE macro controls the TCHAR meaning of the win32 API. Since
+ * all headers have already been included here, we can safely redefine it.
+ */
+#ifdef UNICODE
+# undef UNICODE
+#endif
+
+/*
* Pickle opcodes. These must be kept in synch with pickle.py. Extensive
* docs are in pickletools.py.
*/
More information about the Python-checkins
mailing list