diff options
author | Tim Peters <tim.peters@gmail.com> | 2001-06-26 22:40:47 +0000 |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2001-06-26 22:40:47 +0000 |
commit | 0c82565e84991d668a12334be7801bcd46b897ad (patch) | |
tree | 7388608731fa35743bf83eb78b17b8b30e53c9bc | |
parent | b2c5022c094083036f12362a49b11b1383c5e13a (diff) | |
download | cpython-0c82565e84991d668a12334be7801bcd46b897ad.tar.gz |
Windows build broke from recent Unicode changes -- need to #define
SIZEOF_SHORT by hand here.
Also added dynamic check that SIZEOF_SHORT is correct for the platform (in
_testcapimodule).
-rw-r--r-- | Modules/_testcapimodule.c | 1 | ||||
-rw-r--r-- | PC/config.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c index 1c5b0e5aa6..6ff32b5abe 100644 --- a/Modules/_testcapimodule.c +++ b/Modules/_testcapimodule.c @@ -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*); diff --git a/PC/config.h b/PC/config.h index e146469c36..3b81a450a4 100644 --- a/PC/config.h +++ b/PC/config.h @@ -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 |