[Python-checkins] cpython (3.2): Issue #14387 : undefine 'small' so that it doesn't clash with Windows headers.

kristjan.jonsson python-checkins at python.org
Fri Mar 23 00:16:42 CET 2012


http://hg.python.org/cpython/rev/aff7ff2aae8c
changeset:   75890:aff7ff2aae8c
branch:      3.2
parent:      75883:8c1fd9276b25
user:        Kristján Valur Jónsson <kristjan at ccpgames.com>
date:        Thu Mar 22 23:10:37 2012 +0000
summary:
  Issue #14387 : undefine 'small' so that it doesn't clash with Windows headers.

files:
  Include/accu.h |  2 ++
  1 files changed, 2 insertions(+), 0 deletions(-)


diff --git a/Include/accu.h b/Include/accu.h
--- a/Include/accu.h
+++ b/Include/accu.h
@@ -16,6 +16,8 @@
 extern "C" {
 #endif
 
+#undef small /* defined by some Windows headers */
+
 typedef struct {
     PyObject *large;  /* A list of previously accumulated large strings */
     PyObject *small;  /* Pending small strings */

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list