mirror of
https://github.com/python/cpython
synced 2026-09-29 09:05:29 +03:00
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).
This commit is contained in:
parent
e77f2e2798
commit
208efe5640
2 changed files with 2 additions and 0 deletions
|
|
@ -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*);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue