diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c index 1c5b0e5aa66..6ff32b5abed 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 e146469c36c..3b81a450a4d 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