Commit 070264fa authored by Matti Picus's avatar Matti Picus
Browse files

directly add the missing defines

--HG--
branch : py3.7
parent 9616a4971754
Pipeline #21535 passed with stage
in 8 minutes and 58 seconds
......@@ -4,6 +4,14 @@
extern "C" {
#endif
/* in CPython, this is done in PC/pyconfig.h
We do it here since we are not using autoconf to generate this file
At some point we should re-sync with CPython
*/
#ifdef _WIN64
#define MS_WIN64
#endif
#define HAVE_PROTOTYPES 1
#define STDC_HEADERS 1
......@@ -20,10 +28,12 @@ extern "C" {
/* PyPy supposes Py_UNICODE == wchar_t */
#define HAVE_USABLE_WCHAR_T 1
#ifndef _WIN32
#define SIZEOF_WCHAR_T 4
#else
#ifdef _WIN32
#define MS_WIN32 /* only support win32 and greater. */
#define MS_WINDOWS
#define SIZEOF_WCHAR_T 2
#else
#define SIZEOF_WCHAR_T 4
#endif
#ifndef _WIN32
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment