| #ifndef Py_CONFIG_H |
| #define Py_CONFIG_H |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
|
|
| |
| #ifdef USE_DL_EXPORT |
| # define Py_BUILD_CORE |
| #endif |
|
|
| |
| |
| |
| |
| |
| |
|
|
| #ifndef _CRT_SECURE_NO_DEPRECATE |
| #define _CRT_SECURE_NO_DEPRECATE 1 |
| #endif |
| #ifndef _CRT_NONSTDC_NO_DEPRECATE |
| #define _CRT_NONSTDC_NO_DEPRECATE 1 |
| #endif |
|
|
| #define HAVE_IO_H |
| #define HAVE_SYS_UTIME_H |
| #define HAVE_TEMPNAM |
| #define HAVE_TMPFILE |
| #define HAVE_TMPNAM |
| #define HAVE_CLOCK |
| #define HAVE_STRERROR |
|
|
| #include <io.h> |
|
|
| #define HAVE_STRFTIME |
| #define DONT_HAVE_SIG_ALARM |
| #define DONT_HAVE_SIG_PAUSE |
| #define LONG_BIT 32 |
| #define WORD_BIT 32 |
|
|
| #define MS_WIN32 |
| #define MS_WINDOWS |
| #define NT_THREADS |
| #define WITH_THREAD |
| #ifndef NETSCAPE_PI |
| #define USE_SOCKET |
| #endif |
|
|
| #if defined(Py_BUILD_CORE) || defined(Py_BUILD_CORE_BUILTIN) || defined(Py_BUILD_CORE_MODULE) |
| #include <winapifamily.h> |
|
|
| #if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) |
| #define MS_WINDOWS_DESKTOP |
| #endif |
| #if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) |
| #define MS_WINDOWS_APP |
| #endif |
| #if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_SYSTEM) |
| #define MS_WINDOWS_SYSTEM |
| #endif |
| #if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_GAMES) |
| #define MS_WINDOWS_GAMES |
| #endif |
|
|
| |
| #if defined(MS_WINDOWS_DESKTOP) || defined(MS_WINDOWS_APP) || defined(MS_WINDOWS_SYSTEM) |
| #define HAVE_WINDOWS_CONSOLE_IO 1 |
| #endif |
| #endif |
|
|
| |
| |
| |
| |
| #ifndef Py_GIL_DISABLED |
| |
| #endif |
|
|
| |
|
|
| |
| |
| #ifdef _MSC_VER |
|
|
| |
| |
| |
| |
| #define _Py_PASTE_VERSION(SUFFIX) \ |
| ("[MSC v." _Py_STRINGIZE(_MSC_VER) " " SUFFIX "]") |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| #define _Py_STRINGIZE(X) _Py_STRINGIZE1(X) |
| #define _Py_STRINGIZE1(X) #X |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| #ifdef _WIN64 |
| #define MS_WIN64 |
| #endif |
|
|
| |
| |
| |
| |
| |
| |
| |
| #ifdef MS_WIN64 |
| #if defined(_M_X64) || defined(_M_AMD64) |
| #if defined(__clang__) |
| #define COMPILER ("[Clang " __clang_version__ "] 64 bit (AMD64) with MSC v." _Py_STRINGIZE(_MSC_VER) " CRT]") |
| #define PY_SUPPORT_TIER 0 |
| #elif defined(__INTEL_COMPILER) |
| #define COMPILER ("[ICC v." _Py_STRINGIZE(__INTEL_COMPILER) " 64 bit (amd64) with MSC v." _Py_STRINGIZE(_MSC_VER) " CRT]") |
| #define PY_SUPPORT_TIER 0 |
| #else |
| #define COMPILER _Py_PASTE_VERSION("64 bit (AMD64)") |
| #define PY_SUPPORT_TIER 1 |
| #endif |
| #define PYD_PLATFORM_TAG "win_amd64" |
| #elif defined(_M_ARM64) |
| #define COMPILER _Py_PASTE_VERSION("64 bit (ARM64)") |
| #define PY_SUPPORT_TIER 3 |
| #define PYD_PLATFORM_TAG "win_arm64" |
| #else |
| #define COMPILER _Py_PASTE_VERSION("64 bit (Unknown)") |
| #define PY_SUPPORT_TIER 0 |
| #endif |
| #endif |
|
|
| |
| |
| #define Py_WINVER 0x0603 |
| #define Py_NTDDI NTDDI_WINBLUE |
|
|
| |
| |
| |
| |
| |
| |
| |
| #if defined(Py_BUILD_CORE) || defined(Py_BUILD_CORE_BUILTIN) || defined(Py_BUILD_CORE_MODULE) |
| #ifndef NTDDI_VERSION |
| #define NTDDI_VERSION Py_NTDDI |
| #endif |
| #ifndef WINVER |
| #define WINVER Py_WINVER |
| #endif |
| #ifndef _WIN32_WINNT |
| #define _WIN32_WINNT Py_WINVER |
| #endif |
| #endif |
|
|
| |
| #ifndef _W64 |
| #define _W64 |
| #endif |
|
|
| |
| #ifdef MS_WIN64 |
| typedef __int64 Py_ssize_t; |
| # define PY_SSIZE_T_MAX LLONG_MAX |
| #else |
| typedef _W64 int Py_ssize_t; |
| # define PY_SSIZE_T_MAX INT_MAX |
| #endif |
| #define HAVE_PY_SSIZE_T 1 |
|
|
| #if defined(MS_WIN32) && !defined(MS_WIN64) |
| #if defined(_M_IX86) |
| #if defined(__clang__) |
| #define COMPILER ("[Clang " __clang_version__ "] 32 bit (Intel) with MSC v." _Py_STRINGIZE(_MSC_VER) " CRT]") |
| #define PY_SUPPORT_TIER 0 |
| #elif defined(__INTEL_COMPILER) |
| #define COMPILER ("[ICC v." _Py_STRINGIZE(__INTEL_COMPILER) " 32 bit (Intel) with MSC v." _Py_STRINGIZE(_MSC_VER) " CRT]") |
| #define PY_SUPPORT_TIER 0 |
| #else |
| #define COMPILER _Py_PASTE_VERSION("32 bit (Intel)") |
| #define PY_SUPPORT_TIER 1 |
| #endif |
| #define PYD_PLATFORM_TAG "win32" |
| #elif defined(_M_ARM) |
| #define COMPILER _Py_PASTE_VERSION("32 bit (ARM)") |
| #define PYD_PLATFORM_TAG "win_arm32" |
| #define PY_SUPPORT_TIER 0 |
| #else |
| #define COMPILER _Py_PASTE_VERSION("32 bit (Unknown)") |
| #define PY_SUPPORT_TIER 0 |
| #endif |
| #endif |
|
|
| typedef int pid_t; |
|
|
| |
| #if _MSC_VER >= 1200 |
| |
| #include <basetsd.h> |
| #endif |
|
|
| #endif |
|
|
| |
| |
| #ifdef __MINGW32__ |
|
|
| #ifdef _WIN64 |
| #define MS_WIN64 |
| #endif |
|
|
| #endif |
|
|
| |
| |
| #if defined(__GNUC__) && defined(_WIN32) |
| |
| |
| |
| |
| |
| |
| #if (__GNUC__==2) && (__GNUC_MINOR__<=91) |
| #warning "Please use an up-to-date version of gcc! (>2.91 recommended)" |
| #endif |
|
|
| #define COMPILER "[gcc]" |
| #define PY_LONG_LONG long long |
| #define PY_LLONG_MIN LLONG_MIN |
| #define PY_LLONG_MAX LLONG_MAX |
| #define PY_ULLONG_MAX ULLONG_MAX |
| #endif |
|
|
| |
| |
| #if defined(__LCC__) |
| |
| |
|
|
| #define COMPILER "[lcc-win32]" |
| typedef int pid_t; |
| |
|
|
| #endif |
|
|
| |
| |
|
|
| #ifndef NO_STDIO_H |
| # include <stdio.h> |
| #endif |
|
|
| |
| #ifndef PY_LONG_LONG |
| # define PY_LONG_LONG __int64 |
| # define PY_LLONG_MAX _I64_MAX |
| # define PY_LLONG_MIN _I64_MIN |
| # define PY_ULLONG_MAX _UI64_MAX |
| #endif |
|
|
| |
| |
| #if !defined(MS_NO_COREDLL) && !defined(Py_NO_ENABLE_SHARED) |
| # define Py_ENABLE_SHARED 1 |
| # define MS_COREDLL |
| #endif |
|
|
| |
| #define HAVE_DECLSPEC_DLL |
|
|
| |
| #ifdef MS_COREDLL |
| # if !defined(Py_BUILD_CORE) && !defined(Py_BUILD_CORE_BUILTIN) |
| |
| # if defined(_MSC_VER) |
| |
| |
| # if defined(Py_GIL_DISABLED) |
| # if defined(_DEBUG) |
| # pragma comment(lib,"python313t_d.lib") |
| # elif defined(Py_LIMITED_API) |
| # pragma comment(lib,"python3t.lib") |
| # else |
| # pragma comment(lib,"python313t.lib") |
| # endif |
| # else |
| # if defined(_DEBUG) |
| # pragma comment(lib,"python313_d.lib") |
| # elif defined(Py_LIMITED_API) |
| # pragma comment(lib,"python3.lib") |
| # else |
| # pragma comment(lib,"python313.lib") |
| # endif |
| # endif |
| # endif |
| # endif |
| #endif |
|
|
| #ifdef MS_WIN64 |
| |
| |
| |
| # define PLATFORM "win32" |
| # define SIZEOF_VOID_P 8 |
| # define SIZEOF_TIME_T 8 |
| # define SIZEOF_OFF_T 4 |
| # define SIZEOF_FPOS_T 8 |
| # define SIZEOF_HKEY 8 |
| # define SIZEOF_SIZE_T 8 |
| # define ALIGNOF_SIZE_T 8 |
| # define ALIGNOF_MAX_ALIGN_T 8 |
| |
| |
| |
| |
| |
| # define HAVE_LARGEFILE_SUPPORT |
| #elif defined(MS_WIN32) |
| # define PLATFORM "win32" |
| # define HAVE_LARGEFILE_SUPPORT |
| # define SIZEOF_VOID_P 4 |
| # define SIZEOF_OFF_T 4 |
| # define SIZEOF_FPOS_T 8 |
| # define SIZEOF_HKEY 4 |
| # define SIZEOF_SIZE_T 4 |
| # define ALIGNOF_SIZE_T 4 |
| |
| # if defined(_MSC_VER) && _MSC_VER >= 1400 |
| # define SIZEOF_TIME_T 8 |
| # else |
| # define SIZEOF_TIME_T 4 |
| # endif |
| # define ALIGNOF_MAX_ALIGN_T 8 |
| #endif |
|
|
| #ifdef _DEBUG |
| # define Py_DEBUG |
| #endif |
|
|
|
|
| #ifdef MS_WIN32 |
|
|
| #define SIZEOF_SHORT 2 |
| #define SIZEOF_INT 4 |
| #define SIZEOF_LONG 4 |
| #define ALIGNOF_LONG 4 |
| #define SIZEOF_LONG_LONG 8 |
| #define SIZEOF_DOUBLE 8 |
| #define SIZEOF_FLOAT 4 |
|
|
| |
| |
| |
| |
| #if defined(_MSC_VER) |
| #if _MSC_VER > 1300 |
| #define HAVE_UINTPTR_T 1 |
| #define HAVE_INTPTR_T 1 |
| #else |
| |
| #define Py_LL(x) x##I64 |
| #endif |
| #endif |
|
|
| #endif |
|
|
| |
| |
| #define PY_UINT32_T uint32_t |
| #define PY_UINT64_T uint64_t |
| #define PY_INT32_T int32_t |
| #define PY_INT64_T int64_t |
|
|
| |
|
|
| |
| |
| |
| #ifndef _ALL_SOURCE |
| |
| #endif |
|
|
| |
| |
|
|
| |
| #define HAVE_CONIO_H 1 |
|
|
| |
| #define HAVE_DIRECT_H 1 |
|
|
| |
| |
| #define HAVE_DECL_TZNAME 1 |
|
|
| |
| |
|
|
| |
| |
| |
|
|
| |
| |
|
|
| |
| |
|
|
| |
| |
| #define HAVE_TZNAME |
|
|
| |
| |
|
|
| |
| |
|
|
| |
| |
|
|
| |
| |
|
|
| |
| |
| |
|
|
| |
| |
|
|
| |
| #define RETSIGTYPE void |
|
|
| |
| |
|
|
| |
| #define STDC_HEADERS 1 |
|
|
| |
| |
|
|
| |
| |
|
|
| |
| |
|
|
| |
| |
|
|
| |
| |
|
|
| |
| |
|
|
| |
| |
| |
|
|
| |
| |
|
|
| |
| #define HAVE_PUTENV |
|
|
| |
| #define HAVE_PROTOTYPES |
|
|
| |
| |
| |
|
|
| |
| |
| #define WITH_DECIMAL_CONTEXTVAR 1 |
|
|
| |
| #define WITH_DOC_STRINGS 1 |
|
|
| |
| |
|
|
| |
| |
|
|
| |
| #define WITH_PYMALLOC 1 |
|
|
| |
| #define WITH_MIMALLOC 1 |
|
|
| |
| #define WITH_FREELISTS 1 |
|
|
| |
| |
|
|
| |
| #define HAVE_DYNAMIC_LOADING |
|
|
| |
| #define HAVE_FTIME |
|
|
| |
| #define HAVE_GETPEERNAME |
|
|
| |
| |
|
|
| |
| #define HAVE_GETPID |
|
|
| |
| |
|
|
| |
| |
|
|
| |
| |
|
|
| |
| #define HAVE_MKTIME |
|
|
| |
| |
|
|
| |
| |
|
|
| |
| |
|
|
| |
| |
|
|
| |
| |
|
|
| |
| #define HAVE_SETVBUF |
|
|
| |
| |
|
|
| |
| #define HAVE_SHUTDOWN 1 |
|
|
| |
| |
|
|
| |
| |
|
|
| |
| |
|
|
| |
| |
|
|
| |
| #define HAVE_UMASK 1 |
|
|
| |
| |
|
|
| |
| |
|
|
| |
| #if defined(_MSC_VER) && _MSC_VER >= 1310 |
| #define HAVE_WCSFTIME 1 |
| #endif |
|
|
| |
| #define HAVE_WCSCOLL 1 |
|
|
| |
| #define HAVE_WCSXFRM 1 |
|
|
| |
| #define HAVE_ZLIB_COPY 1 |
|
|
| |
| |
|
|
| |
| #define HAVE_ERRNO_H 1 |
|
|
| |
| #define HAVE_FCNTL_H 1 |
|
|
| |
| #define HAVE_PROCESS_H 1 |
|
|
| |
| #define HAVE_SIGNAL_H 1 |
|
|
| |
| #define HAVE_STDDEF_H 1 |
|
|
| |
| |
|
|
| |
| |
|
|
| |
| |
|
|
| |
| #define HAVE_SYS_STAT_H 1 |
|
|
| |
| |
|
|
| |
| |
|
|
| |
| #define HAVE_SYS_TYPES_H 1 |
|
|
| |
| |
|
|
| |
| |
|
|
| |
| |
|
|
| |
| |
|
|
| |
| |
|
|
| |
| #define HAVE_WCHAR_H 1 |
|
|
| |
| #define SIZEOF_WCHAR_T 2 |
|
|
| |
| #define SIZEOF__BOOL 1 |
|
|
| |
| #define SIZEOF_PID_T SIZEOF_INT |
|
|
| |
| |
|
|
| |
| |
|
|
| |
| |
|
|
| |
| #define HAVE_LIBSOCKET 1 |
|
|
| |
| |
|
|
| |
| |
|
|
| |
| |
|
|
| |
| |
|
|
| |
| |
| #define Py_SOCKET_FD_CAN_BE_GE_FD_SETSIZE |
|
|
| |
| |
| #define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1 |
|
|
| |
| #define HAVE_ERF 1 |
|
|
| |
| #define HAVE_ERFC 1 |
|
|
| |
| #define HAVE_GETHOSTNAME 1 |
| #define HAVE_GETHOSTBYADDR 1 |
| #define HAVE_GETHOSTBYNAME 1 |
| #define HAVE_GETPROTOBYNAME 1 |
| #define HAVE_GETSERVBYNAME 1 |
| #define HAVE_GETSERVBYPORT 1 |
| |
| #define HAVE_INET_PTON 1 |
| #define HAVE_INET_NTOA 1 |
| #define HAVE_ACCEPT 1 |
| #define HAVE_BIND 1 |
| #define HAVE_CONNECT 1 |
| #define HAVE_GETSOCKNAME 1 |
| #define HAVE_LISTEN 1 |
| #define HAVE_RECVFROM 1 |
| #define HAVE_SENDTO 1 |
| #define HAVE_SETSOCKOPT 1 |
| #define HAVE_SOCKET 1 |
|
|
| |
| #define HAVE_DUP 1 |
|
|
| |
| #define _PYTHONFRAMEWORK "" |
|
|
| |
| #define HAVE_X509_VERIFY_PARAM_SET1_HOST 1 |
|
|
| #endif |
|
|