| /* pyconfig.h. NOT Generated automatically by configure. | |
| This is a manually maintained version used for the Watcom, | |
| Borland and Microsoft Visual C++ compilers. It is a | |
| standard part of the Python distribution. | |
| WINDOWS DEFINES: | |
| The code specific to Windows should be wrapped around one of | |
| the following #defines | |
| MS_WIN64 - Code specific to the MS Win64 API | |
| MS_WIN32 - Code specific to the MS Win32 (and Win64) API (obsolete, this covers all supported APIs) | |
| MS_WINDOWS - Code specific to Windows, but all versions. | |
| Py_ENABLE_SHARED - Code if the Python core is built as a DLL. | |
| Also note that neither "_M_IX86" or "_MSC_VER" should be used for | |
| any purpose other than "Windows Intel x86 specific" and "Microsoft | |
| compiler specific". Therefore, these should be very rare. | |
| NOTE: The following symbols are deprecated: | |
| NT, USE_DL_EXPORT, USE_DL_IMPORT, DL_EXPORT, DL_IMPORT | |
| MS_CORE_DLL. | |
| WIN32 is still required for the locale module. | |
| */ | |
| /* Deprecated USE_DL_EXPORT macro - please use Py_BUILD_CORE */ | |
| /* Visual Studio 2005 introduces deprecation warnings for | |
| "insecure" and POSIX functions. The insecure functions should | |
| be replaced by *_s versions (according to Microsoft); the | |
| POSIX functions by _* versions (which, according to Microsoft, | |
| would be ISO C conforming). Neither renaming is feasible, so | |
| we just silence the warnings. */ | |
| /* Compiler specific defines */ | |
| /* ------------------------------------------------------------------------*/ | |
| /* Microsoft C defines _MSC_VER */ | |
| /* We want COMPILER to expand to a string containing _MSC_VER's *value*. | |
| * This is horridly tricky, because the stringization operator only works | |
| * on macro arguments, and doesn't evaluate macros passed *as* arguments. | |
| * Attempts simpler than the following appear doomed to produce "_MSC_VER" | |
| * literally in the string. | |
| */ | |
| ("[MSC v." _Py_STRINGIZE(_MSC_VER) " " SUFFIX "]") | |
| /* e.g., this produces, after compile-time string catenation, | |
| * ("[MSC v.1200 32 bit (Intel)]") | |
| * | |
| * _Py_STRINGIZE(_MSC_VER) expands to | |
| * _Py_STRINGIZE1((_MSC_VER)) expands to | |
| * _Py_STRINGIZE2(_MSC_VER) but as this call is the result of token-pasting | |
| * it's scanned again for macros and so further expands to (under MSVC 6) | |
| * _Py_STRINGIZE2(1200) which then expands to | |
| * "1200" | |
| */ | |
| /* MSVC defines _WINxx to differentiate the windows platform types | |
| Note that for compatibility reasons _WIN32 is defined on Win32 | |
| *and* on Win64. For the same reasons, in Python, MS_WIN32 is | |
| defined on Win32 *and* Win64. Win32 only code must therefore be | |
| guarded as follows: | |
| #if defined(MS_WIN32) && !defined(MS_WIN64) | |
| */ | |
| /* set the COMPILER and support tier | |
| * | |
| * win_amd64 MSVC (x86_64-pc-windows-msvc): 1 | |
| * win32 MSVC (i686-pc-windows-msvc): 1 | |
| * win_arm64 MSVC (aarch64-pc-windows-msvc): 3 | |
| * other archs and ICC: 0 | |
| */ | |
| /* set the version macros for the windows headers */ | |
| /* Python 3.9+ requires Windows 8 or greater */ | |
| /* We only set these values when building Python - we don't want to force | |
| these values on extensions, as that will affect the prototypes and | |
| structures exposed in the Windows headers. Even when building Python, we | |
| allow a single source file to override this - they may need access to | |
| structures etc so it can optionally use new Windows features if it | |
| determines at runtime they are available. | |
| */ | |
| /* _W64 is not defined for VC6 or eVC4 */ | |
| /* Define like size_t, omitting the "unsigned" */ | |
| typedef __int64 Py_ssize_t; | |
| typedef _W64 int Py_ssize_t; | |
| typedef int pid_t; | |
| /* define some ANSI types that are not defined in earlier Win headers */ | |
| /* This file only exists in VC 6.0 or higher */ | |
| /* ------------------------------------------------------------------------*/ | |
| /* egcs/gnu-win32 defines __GNUC__ and _WIN32 */ | |
| /* XXX These defines are likely incomplete, but should be easy to fix. | |
| They should be complete enough to build extension modules. */ | |
| /* Suggested by Rene Liebscher <R.Liebscher@gmx.de> to avoid a GCC 2.91.* | |
| bug that requires structure imports. More recent versions of the | |
| compiler don't exhibit this bug. | |
| */ | |
| /* ------------------------------------------------------------------------*/ | |
| /* lcc-win32 defines __LCC__ */ | |
| /* XXX These defines are likely incomplete, but should be easy to fix. | |
| They should be complete enough to build extension modules. */ | |
| typedef int pid_t; | |
| /* __declspec() is supported here too - do nothing to get the defaults */ | |
| /* ------------------------------------------------------------------------*/ | |
| /* End of compilers - finish up */ | |
| /* 64 bit ints are usually spelt __int64 unless compiler has overridden */ | |
| /* For Windows the Python core is in a DLL by default. Test | |
| Py_NO_ENABLE_SHARED to find out. Also support MS_NO_COREDLL for b/w compat */ | |
| /* All windows compilers that use this header support __declspec */ | |
| /* For an MSVC DLL, we can nominate the .lib files used by extensions */ | |
| /* not building the core - must be an ext */ | |
| /* So MSVC users need not specify the .lib | |
| file in their Makefile (other compilers are | |
| generally taken care of by distutils.) */ | |
| /* maintain "win32" sys.platform for backward compatibility of Python code, | |
| the Win64 API should be close enough to the Win32 API to make this | |
| preferable */ | |
| /* configure.ac defines HAVE_LARGEFILE_SUPPORT iff | |
| sizeof(off_t) > sizeof(long), and sizeof(long long) >= sizeof(off_t). | |
| On Win64 the second condition is not true, but if fpos_t replaces off_t | |
| then this is true. The uses of HAVE_LARGEFILE_SUPPORT imply that Win64 | |
| should define this. */ | |
| /* MS VS2005 changes time_t to a 64-bit type on all platforms */ | |
| /* VC 7.1 has them and VC 6.0 does not. VC 6.0 has a version number of 1200. | |
| Microsoft eMbedded Visual C++ 4.0 has a version number of 1201 and doesn't | |
| define these. | |
| If some compiler does not provide them, modify the #if appropriately. */ | |
| /* VC6, VS 2002 and eVC4 don't support the C99 LL suffix for 64-bit integer literals */ | |
| /* define signed and unsigned exact-width 32-bit and 64-bit types, used in the | |
| implementation of Python integers. */ | |
| /* Fairly standard from here! */ | |
| /* Define if on AIX 3. | |
| System headers sometimes define this. | |
| We just want to avoid a redefinition error message. */ | |
| /* #undef _ALL_SOURCE */ | |
| /* Define to empty if the keyword does not work. */ | |
| /* #define const */ | |
| /* Define to 1 if you have the <conio.h> header file. */ | |
| /* Define to 1 if you have the <direct.h> header file. */ | |
| /* Define to 1 if you have the declaration of `tzname', and to 0 if you don't. | |
| */ | |
| /* Define if you have dirent.h. */ | |
| /* #define DIRENT 1 */ | |
| /* Define to the type of elements in the array set by `getgroups'. | |
| Usually this is either `int' or `gid_t'. */ | |
| /* #undef GETGROUPS_T */ | |
| /* Define to `int' if <sys/types.h> doesn't define. */ | |
| /* #undef gid_t */ | |
| /* Define if your struct tm has tm_zone. */ | |
| /* #undef HAVE_TM_ZONE */ | |
| /* Define if you don't have tm_zone but do have the external array | |
| tzname. */ | |
| /* Define to `int' if <sys/types.h> doesn't define. */ | |
| /* #undef mode_t */ | |
| /* Define if you don't have dirent.h, but have ndir.h. */ | |
| /* #undef NDIR */ | |
| /* Define to `long' if <sys/types.h> doesn't define. */ | |
| /* #undef off_t */ | |
| /* Define to `int' if <sys/types.h> doesn't define. */ | |
| /* #undef pid_t */ | |
| /* Define if the system does not provide POSIX.1 features except | |
| with this defined. */ | |
| /* #undef _POSIX_1_SOURCE */ | |
| /* Define if you need to in order for stat and other things to work. */ | |
| /* #undef _POSIX_SOURCE */ | |
| /* Define as the return type of signal handlers (int or void). */ | |
| /* Define to `unsigned' if <sys/types.h> doesn't define. */ | |
| /* #undef size_t */ | |
| /* Define if you have the ANSI C header files. */ | |
| /* Define if you don't have dirent.h, but have sys/dir.h. */ | |
| /* #undef SYSDIR */ | |
| /* Define if you don't have dirent.h, but have sys/ndir.h. */ | |
| /* #undef SYSNDIR */ | |
| /* Define if you can safely include both <sys/time.h> and <time.h>. */ | |
| /* #undef TIME_WITH_SYS_TIME */ | |
| /* Define if your <sys/time.h> declares struct tm. */ | |
| /* #define TM_IN_SYS_TIME 1 */ | |
| /* Define to `int' if <sys/types.h> doesn't define. */ | |
| /* #undef uid_t */ | |
| /* Define if the closedir function returns void instead of int. */ | |
| /* #undef VOID_CLOSEDIR */ | |
| /* Define if getpgrp() must be called as getpgrp(0) | |
| and (consequently) setpgrp() as setpgrp(0, 0). */ | |
| /* #undef GETPGRP_HAVE_ARGS */ | |
| /* Define this if your time.h defines altzone */ | |
| /* #define HAVE_ALTZONE */ | |
| /* Define if you have the putenv function. */ | |
| /* Define if your compiler supports function prototypes */ | |
| /* Define if you can safely include both <sys/select.h> and <sys/time.h> | |
| (which you can't on SCO ODT 3.0). */ | |
| /* #undef SYS_SELECT_WITH_SYS_TIME */ | |
| /* Define if you want build the _decimal module using a coroutine-local rather | |
| than a thread-local context */ | |
| /* Define if you want documentation strings in extension modules */ | |
| /* Define if you want to compile in rudimentary thread support */ | |
| /* #undef WITH_THREAD */ | |
| /* Define if you want to use the GNU readline library */ | |
| /* #define WITH_READLINE 1 */ | |
| /* Use Python's own small-block memory-allocator. */ | |
| /* Define if you want to compile in object freelists optimization */ | |
| /* Define if you have clock. */ | |
| /* #define HAVE_CLOCK */ | |
| /* Define when any dynamic module loading is enabled */ | |
| /* Define if you have ftime. */ | |
| /* Define if you have getpeername. */ | |
| /* Define if you have getpgrp. */ | |
| /* #undef HAVE_GETPGRP */ | |
| /* Define if you have getpid. */ | |
| /* Define if you have gettimeofday. */ | |
| /* #undef HAVE_GETTIMEOFDAY */ | |
| /* Define if you have getwd. */ | |
| /* #undef HAVE_GETWD */ | |
| /* Define if you have lstat. */ | |
| /* #undef HAVE_LSTAT */ | |
| /* Define if you have the mktime function. */ | |
| /* Define if you have nice. */ | |
| /* #undef HAVE_NICE */ | |
| /* Define if you have readlink. */ | |
| /* #undef HAVE_READLINK */ | |
| /* Define if you have setpgid. */ | |
| /* #undef HAVE_SETPGID */ | |
| /* Define if you have setpgrp. */ | |
| /* #undef HAVE_SETPGRP */ | |
| /* Define if you have setsid. */ | |
| /* #undef HAVE_SETSID */ | |
| /* Define if you have setvbuf. */ | |
| /* Define if you have siginterrupt. */ | |
| /* #undef HAVE_SIGINTERRUPT */ | |
| /* Define to 1 if you have the `shutdown' function. */ | |
| /* Define if you have symlink. */ | |
| /* #undef HAVE_SYMLINK */ | |
| /* Define if you have tcgetpgrp. */ | |
| /* #undef HAVE_TCGETPGRP */ | |
| /* Define if you have tcsetpgrp. */ | |
| /* #undef HAVE_TCSETPGRP */ | |
| /* Define if you have times. */ | |
| /* #undef HAVE_TIMES */ | |
| /* Define to 1 if you have the `umask' function. */ | |
| /* Define if you have uname. */ | |
| /* #undef HAVE_UNAME */ | |
| /* Define if you have waitpid. */ | |
| /* #undef HAVE_WAITPID */ | |
| /* Define to 1 if you have the `wcsftime' function. */ | |
| /* Define to 1 if you have the `wcscoll' function. */ | |
| /* Define to 1 if you have the `wcsxfrm' function. */ | |
| /* Define if the zlib library has inflateCopy */ | |
| /* Define if you have the <dlfcn.h> header file. */ | |
| /* #undef HAVE_DLFCN_H */ | |
| /* Define to 1 if you have the <errno.h> header file. */ | |
| /* Define if you have the <fcntl.h> header file. */ | |
| /* Define to 1 if you have the <process.h> header file. */ | |
| /* Define to 1 if you have the <signal.h> header file. */ | |
| /* Define if you have the <stdarg.h> prototypes. */ | |
| /* Define if you have the <stddef.h> header file. */ | |
| /* Define if you have the <sys/audioio.h> header file. */ | |
| /* #undef HAVE_SYS_AUDIOIO_H */ | |
| /* Define if you have the <sys/param.h> header file. */ | |
| /* #define HAVE_SYS_PARAM_H 1 */ | |
| /* Define if you have the <sys/select.h> header file. */ | |
| /* #define HAVE_SYS_SELECT_H 1 */ | |
| /* Define to 1 if you have the <sys/stat.h> header file. */ | |
| /* Define if you have the <sys/time.h> header file. */ | |
| /* #define HAVE_SYS_TIME_H 1 */ | |
| /* Define if you have the <sys/times.h> header file. */ | |
| /* #define HAVE_SYS_TIMES_H 1 */ | |
| /* Define to 1 if you have the <sys/types.h> header file. */ | |
| /* Define if you have the <sys/un.h> header file. */ | |
| /* #define HAVE_SYS_UN_H 1 */ | |
| /* Define if you have the <sys/utime.h> header file. */ | |
| /* #define HAVE_SYS_UTIME_H 1 */ | |
| /* Define if you have the <sys/utsname.h> header file. */ | |
| /* #define HAVE_SYS_UTSNAME_H 1 */ | |
| /* Define if you have the <unistd.h> header file. */ | |
| /* #define HAVE_UNISTD_H 1 */ | |
| /* Define if you have the <utime.h> header file. */ | |
| /* #define HAVE_UTIME_H 1 */ | |
| /* Define if the compiler provides a wchar.h header file. */ | |
| /* The size of `wchar_t', as computed by sizeof. */ | |
| /* The size of `_Bool', as computed by sizeof. */ | |
| /* The size of `pid_t', as computed by sizeof. */ | |
| /* Define if you have the dl library (-ldl). */ | |
| /* #undef HAVE_LIBDL */ | |
| /* Define if you have the mpc library (-lmpc). */ | |
| /* #undef HAVE_LIBMPC */ | |
| /* Define if you have the nsl library (-lnsl). */ | |
| /* Define if you have the seq library (-lseq). */ | |
| /* #undef HAVE_LIBSEQ */ | |
| /* Define if you have the socket library (-lsocket). */ | |
| /* Define if you have the sun library (-lsun). */ | |
| /* #undef HAVE_LIBSUN */ | |
| /* Define if you have the termcap library (-ltermcap). */ | |
| /* #undef HAVE_LIBTERMCAP */ | |
| /* Define if you have the termlib library (-ltermlib). */ | |
| /* #undef HAVE_LIBTERMLIB */ | |
| /* Define if you have the thread library (-lthread). */ | |
| /* #undef HAVE_LIBTHREAD */ | |
| /* WinSock does not use a bitmask in select, and uses | |
| socket handles greater than FD_SETSIZE */ | |
| /* Define if C doubles are 64-bit IEEE 754 binary format, stored with the | |
| least significant byte first */ | |
| /* Define to 1 if you have the `erf' function. */ | |
| /* Define to 1 if you have the `erfc' function. */ | |
| // netdb.h functions (provided by winsock.h) | |
| // sys/socket.h functions (provided by winsock.h) | |
| /* Define to 1 if you have the `dup' function. */ | |
| /* framework name */ | |
| /* Define if libssl has X509_VERIFY_PARAM_set1_host and related function */ | |