]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Windows build broke from recent Unicode changes -- need to #define
authorTim Peters <tim.peters@gmail.com>
Tue, 26 Jun 2001 22:40:47 +0000 (22:40 +0000)
committerTim Peters <tim.peters@gmail.com>
Tue, 26 Jun 2001 22:40:47 +0000 (22:40 +0000)
SIZEOF_SHORT by hand here.
Also added dynamic check that SIZEOF_SHORT is correct for the platform (in
_testcapimodule).

Modules/_testcapimodule.c
PC/config.h

index 1c5b0e5aa665d3449a9f40b425a82de79a220a58..6ff32b5abedd45dec05db098ecdf60609cfcd8da 100644 (file)
@@ -52,6 +52,7 @@ test_config(PyObject *self, PyObject *args)
            if (FATNAME != sizeof(TYPE)) \
                return sizeof_error(#FATNAME, #TYPE, FATNAME, sizeof(TYPE))
 
+       CHECK_SIZEOF(SIZEOF_SHORT, short);
        CHECK_SIZEOF(SIZEOF_INT, int);
        CHECK_SIZEOF(SIZEOF_LONG, long);
        CHECK_SIZEOF(SIZEOF_VOID_P, void*);
index e146469c36c262e1ebd452549ba7dd55f889f7fb..3b81a450a4d09b320d3872e3fa215abaa607a42a 100644 (file)
@@ -344,6 +344,7 @@ typedef unsigned long uintptr_t;
 #define Py_DEBUG
 #endif
 
+#define SIZEOF_SHORT 2
 #define SIZEOF_INT 4
 #define SIZEOF_LONG 4
 #define SIZEOF_LONG_LONG 8