pyconfig.h 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742
  1. #ifndef Py_CONFIG_H
  2. #define Py_CONFIG_H
  3. /* pyconfig.h. NOT Generated automatically by configure.
  4. This is a manually maintained version used for the Watcom,
  5. Borland and Microsoft Visual C++ compilers. It is a
  6. standard part of the Python distribution.
  7. WINDOWS DEFINES:
  8. The code specific to Windows should be wrapped around one of
  9. the following #defines
  10. MS_WIN64 - Code specific to the MS Win64 API
  11. MS_WIN32 - Code specific to the MS Win32 (and Win64) API (obsolete, this covers all supported APIs)
  12. MS_WINDOWS - Code specific to Windows, but all versions.
  13. Py_ENABLE_SHARED - Code if the Python core is built as a DLL.
  14. Also note that neither "_M_IX86" or "_MSC_VER" should be used for
  15. any purpose other than "Windows Intel x86 specific" and "Microsoft
  16. compiler specific". Therefore, these should be very rare.
  17. NOTE: The following symbols are deprecated:
  18. NT, USE_DL_EXPORT, USE_DL_IMPORT, DL_EXPORT, DL_IMPORT
  19. MS_CORE_DLL.
  20. WIN32 is still required for the locale module.
  21. */
  22. /* Deprecated USE_DL_EXPORT macro - please use Py_BUILD_CORE */
  23. #ifdef USE_DL_EXPORT
  24. # define Py_BUILD_CORE
  25. #endif /* USE_DL_EXPORT */
  26. /* Visual Studio 2005 introduces deprecation warnings for
  27. "insecure" and POSIX functions. The insecure functions should
  28. be replaced by *_s versions (according to Microsoft); the
  29. POSIX functions by _* versions (which, according to Microsoft,
  30. would be ISO C conforming). Neither renaming is feasible, so
  31. we just silence the warnings. */
  32. #ifndef _CRT_SECURE_NO_DEPRECATE
  33. #define _CRT_SECURE_NO_DEPRECATE 1
  34. #endif
  35. #ifndef _CRT_NONSTDC_NO_DEPRECATE
  36. #define _CRT_NONSTDC_NO_DEPRECATE 1
  37. #endif
  38. #define HAVE_IO_H
  39. #define HAVE_SYS_UTIME_H
  40. #define HAVE_TEMPNAM
  41. #define HAVE_TMPFILE
  42. #define HAVE_TMPNAM
  43. #define HAVE_CLOCK
  44. #define HAVE_STRERROR
  45. #include <io.h>
  46. #define HAVE_STRFTIME
  47. #define DONT_HAVE_SIG_ALARM
  48. #define DONT_HAVE_SIG_PAUSE
  49. #define LONG_BIT 32
  50. #define WORD_BIT 32
  51. #define MS_WIN32 /* only support win32 and greater. */
  52. #define MS_WINDOWS
  53. #define NT_THREADS
  54. #define WITH_THREAD
  55. #ifndef NETSCAPE_PI
  56. #define USE_SOCKET
  57. #endif
  58. #if defined(Py_BUILD_CORE) || defined(Py_BUILD_CORE_BUILTIN) || defined(Py_BUILD_CORE_MODULE)
  59. #include <winapifamily.h>
  60. #if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
  61. #define MS_WINDOWS_DESKTOP
  62. #endif
  63. #if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)
  64. #define MS_WINDOWS_APP
  65. #endif
  66. #if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_SYSTEM)
  67. #define MS_WINDOWS_SYSTEM
  68. #endif
  69. #if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_GAMES)
  70. #define MS_WINDOWS_GAMES
  71. #endif
  72. /* Define to 1 if you support windows console io */
  73. #if defined(MS_WINDOWS_DESKTOP) || defined(MS_WINDOWS_APP) || defined(MS_WINDOWS_SYSTEM)
  74. #define HAVE_WINDOWS_CONSOLE_IO 1
  75. #endif
  76. #endif /* Py_BUILD_CORE || Py_BUILD_CORE_BUILTIN || Py_BUILD_CORE_MODULE */
  77. /* Compiler specific defines */
  78. /* ------------------------------------------------------------------------*/
  79. /* Microsoft C defines _MSC_VER, as does clang-cl.exe */
  80. #ifdef _MSC_VER
  81. /* We want COMPILER to expand to a string containing _MSC_VER's *value*.
  82. * This is horridly tricky, because the stringization operator only works
  83. * on macro arguments, and doesn't evaluate macros passed *as* arguments.
  84. */
  85. #define _Py_PASTE_VERSION(SUFFIX) \
  86. ("[MSC v." _Py_STRINGIZE(_MSC_VER) " " SUFFIX "]")
  87. /* e.g., this produces, after compile-time string catenation,
  88. * ("[MSC v.1900 64 bit (Intel)]")
  89. *
  90. * _Py_STRINGIZE(_MSC_VER) expands to
  91. * _Py_STRINGIZE1(_MSC_VER) and this second macro call is scanned
  92. * again for macros and so further expands to
  93. * _Py_STRINGIZE1(1900) which then expands to
  94. * "1900"
  95. */
  96. #define _Py_STRINGIZE(X) _Py_STRINGIZE1(X)
  97. #define _Py_STRINGIZE1(X) #X
  98. /* MSVC defines _WINxx to differentiate the windows platform types
  99. Note that for compatibility reasons _WIN32 is defined on Win32
  100. *and* on Win64. For the same reasons, in Python, MS_WIN32 is
  101. defined on Win32 *and* Win64. Win32 only code must therefore be
  102. guarded as follows:
  103. #if defined(MS_WIN32) && !defined(MS_WIN64)
  104. */
  105. #ifdef _WIN64
  106. #define MS_WIN64
  107. #endif
  108. /* set the COMPILER and support tier
  109. *
  110. * win_amd64 MSVC (x86_64-pc-windows-msvc): 1
  111. * win32 MSVC (i686-pc-windows-msvc): 1
  112. * win_arm64 MSVC (aarch64-pc-windows-msvc): 3
  113. * other archs and ICC: 0
  114. */
  115. #ifdef MS_WIN64
  116. #if defined(_M_X64) || defined(_M_AMD64)
  117. #if defined(__clang__)
  118. #define COMPILER ("[Clang " __clang_version__ "] 64 bit (AMD64) with MSC v." _Py_STRINGIZE(_MSC_VER) " CRT]")
  119. #define PY_SUPPORT_TIER 0
  120. #elif defined(__INTEL_COMPILER)
  121. #define COMPILER ("[ICC v." _Py_STRINGIZE(__INTEL_COMPILER) " 64 bit (amd64) with MSC v." _Py_STRINGIZE(_MSC_VER) " CRT]")
  122. #define PY_SUPPORT_TIER 0
  123. #else
  124. #define COMPILER _Py_PASTE_VERSION("64 bit (AMD64)")
  125. #define PY_SUPPORT_TIER 1
  126. #endif /* __clang__ */
  127. #define PYD_PLATFORM_TAG "win_amd64"
  128. #elif defined(_M_ARM64)
  129. #define COMPILER _Py_PASTE_VERSION("64 bit (ARM64)")
  130. #define PY_SUPPORT_TIER 3
  131. #define PYD_PLATFORM_TAG "win_arm64"
  132. #else
  133. #define COMPILER _Py_PASTE_VERSION("64 bit (Unknown)")
  134. #define PY_SUPPORT_TIER 0
  135. #endif
  136. #endif /* MS_WIN64 */
  137. /* set the version macros for the windows headers */
  138. /* Python 3.9+ requires Windows 8 or greater */
  139. #define Py_WINVER 0x0602 /* _WIN32_WINNT_WIN8 */
  140. #define Py_NTDDI NTDDI_WIN8
  141. /* We only set these values when building Python - we don't want to force
  142. these values on extensions, as that will affect the prototypes and
  143. structures exposed in the Windows headers. Even when building Python, we
  144. allow a single source file to override this - they may need access to
  145. structures etc so it can optionally use new Windows features if it
  146. determines at runtime they are available.
  147. */
  148. #if defined(Py_BUILD_CORE) || defined(Py_BUILD_CORE_BUILTIN) || defined(Py_BUILD_CORE_MODULE)
  149. #ifndef NTDDI_VERSION
  150. #define NTDDI_VERSION Py_NTDDI
  151. #endif
  152. #ifndef WINVER
  153. #define WINVER Py_WINVER
  154. #endif
  155. #ifndef _WIN32_WINNT
  156. #define _WIN32_WINNT Py_WINVER
  157. #endif
  158. #endif
  159. /* _W64 is not defined for VC6 or eVC4 */
  160. #ifndef _W64
  161. #define _W64
  162. #endif
  163. /* Define like size_t, omitting the "unsigned" */
  164. #ifdef MS_WIN64
  165. typedef __int64 Py_ssize_t;
  166. # define PY_SSIZE_T_MAX LLONG_MAX
  167. #else
  168. typedef _W64 int Py_ssize_t;
  169. # define PY_SSIZE_T_MAX INT_MAX
  170. #endif
  171. #define HAVE_PY_SSIZE_T 1
  172. #if defined(MS_WIN32) && !defined(MS_WIN64)
  173. #if defined(_M_IX86)
  174. #if defined(__clang__)
  175. #define COMPILER ("[Clang " __clang_version__ "] 32 bit (Intel) with MSC v." _Py_STRINGIZE(_MSC_VER) " CRT]")
  176. #define PY_SUPPORT_TIER 0
  177. #elif defined(__INTEL_COMPILER)
  178. #define COMPILER ("[ICC v." _Py_STRINGIZE(__INTEL_COMPILER) " 32 bit (Intel) with MSC v." _Py_STRINGIZE(_MSC_VER) " CRT]")
  179. #define PY_SUPPORT_TIER 0
  180. #else
  181. #define COMPILER _Py_PASTE_VERSION("32 bit (Intel)")
  182. #define PY_SUPPORT_TIER 1
  183. #endif /* __clang__ */
  184. #define PYD_PLATFORM_TAG "win32"
  185. #elif defined(_M_ARM)
  186. #define COMPILER _Py_PASTE_VERSION("32 bit (ARM)")
  187. #define PYD_PLATFORM_TAG "win_arm32"
  188. #define PY_SUPPORT_TIER 0
  189. #else
  190. #define COMPILER _Py_PASTE_VERSION("32 bit (Unknown)")
  191. #define PY_SUPPORT_TIER 0
  192. #endif
  193. #endif /* MS_WIN32 && !MS_WIN64 */
  194. typedef int pid_t;
  195. /* define some ANSI types that are not defined in earlier Win headers */
  196. #if _MSC_VER >= 1200
  197. /* This file only exists in VC 6.0 or higher */
  198. #include <basetsd.h>
  199. #endif
  200. #endif /* _MSC_VER */
  201. /* ------------------------------------------------------------------------*/
  202. /* mingw and mingw-w64 define __MINGW32__ */
  203. #ifdef __MINGW32__
  204. #ifdef _WIN64
  205. #define MS_WIN64
  206. #endif
  207. #endif /* __MINGW32__*/
  208. /* ------------------------------------------------------------------------*/
  209. /* egcs/gnu-win32 defines __GNUC__ and _WIN32 */
  210. #if defined(__GNUC__) && defined(_WIN32)
  211. /* XXX These defines are likely incomplete, but should be easy to fix.
  212. They should be complete enough to build extension modules. */
  213. /* Suggested by Rene Liebscher <R.Liebscher@gmx.de> to avoid a GCC 2.91.*
  214. bug that requires structure imports. More recent versions of the
  215. compiler don't exhibit this bug.
  216. */
  217. #if (__GNUC__==2) && (__GNUC_MINOR__<=91)
  218. #warning "Please use an up-to-date version of gcc! (>2.91 recommended)"
  219. #endif
  220. #define COMPILER "[gcc]"
  221. #define PY_LONG_LONG long long
  222. #define PY_LLONG_MIN LLONG_MIN
  223. #define PY_LLONG_MAX LLONG_MAX
  224. #define PY_ULLONG_MAX ULLONG_MAX
  225. #endif /* GNUC */
  226. /* ------------------------------------------------------------------------*/
  227. /* lcc-win32 defines __LCC__ */
  228. #if defined(__LCC__)
  229. /* XXX These defines are likely incomplete, but should be easy to fix.
  230. They should be complete enough to build extension modules. */
  231. #define COMPILER "[lcc-win32]"
  232. typedef int pid_t;
  233. /* __declspec() is supported here too - do nothing to get the defaults */
  234. #endif /* LCC */
  235. /* ------------------------------------------------------------------------*/
  236. /* End of compilers - finish up */
  237. #ifndef NO_STDIO_H
  238. # include <stdio.h>
  239. #endif
  240. /* 64 bit ints are usually spelt __int64 unless compiler has overridden */
  241. #ifndef PY_LONG_LONG
  242. # define PY_LONG_LONG __int64
  243. # define PY_LLONG_MAX _I64_MAX
  244. # define PY_LLONG_MIN _I64_MIN
  245. # define PY_ULLONG_MAX _UI64_MAX
  246. #endif
  247. /* For Windows the Python core is in a DLL by default. Test
  248. Py_NO_ENABLE_SHARED to find out. Also support MS_NO_COREDLL for b/w compat */
  249. #if !defined(MS_NO_COREDLL) && !defined(Py_NO_ENABLE_SHARED)
  250. # define Py_ENABLE_SHARED 1 /* standard symbol for shared library */
  251. # define MS_COREDLL /* deprecated old symbol */
  252. #endif /* !MS_NO_COREDLL && ... */
  253. /* All windows compilers that use this header support __declspec */
  254. #define HAVE_DECLSPEC_DLL
  255. /* For an MSVC DLL, we can nominate the .lib files used by extensions */
  256. #ifdef MS_COREDLL
  257. # if !defined(Py_BUILD_CORE) && !defined(Py_BUILD_CORE_BUILTIN)
  258. /* not building the core - must be an ext */
  259. # if defined(_MSC_VER)
  260. /* So MSVC users need not specify the .lib
  261. file in their Makefile (other compilers are
  262. generally taken care of by distutils.) */
  263. # if defined(_DEBUG)
  264. # pragma comment(lib,"python312_d.lib")
  265. # elif defined(Py_LIMITED_API)
  266. # pragma comment(lib,"python3.lib")
  267. # else
  268. # pragma comment(lib,"python312.lib")
  269. # endif /* _DEBUG */
  270. # endif /* _MSC_VER */
  271. # endif /* Py_BUILD_CORE */
  272. #endif /* MS_COREDLL */
  273. #ifdef MS_WIN64
  274. /* maintain "win32" sys.platform for backward compatibility of Python code,
  275. the Win64 API should be close enough to the Win32 API to make this
  276. preferable */
  277. # define PLATFORM "win32"
  278. # define SIZEOF_VOID_P 8
  279. # define SIZEOF_TIME_T 8
  280. # define SIZEOF_OFF_T 4
  281. # define SIZEOF_FPOS_T 8
  282. # define SIZEOF_HKEY 8
  283. # define SIZEOF_SIZE_T 8
  284. # define ALIGNOF_SIZE_T 8
  285. # define ALIGNOF_MAX_ALIGN_T 8
  286. /* configure.ac defines HAVE_LARGEFILE_SUPPORT iff
  287. sizeof(off_t) > sizeof(long), and sizeof(long long) >= sizeof(off_t).
  288. On Win64 the second condition is not true, but if fpos_t replaces off_t
  289. then this is true. The uses of HAVE_LARGEFILE_SUPPORT imply that Win64
  290. should define this. */
  291. # define HAVE_LARGEFILE_SUPPORT
  292. #elif defined(MS_WIN32)
  293. # define PLATFORM "win32"
  294. # define HAVE_LARGEFILE_SUPPORT
  295. # define SIZEOF_VOID_P 4
  296. # define SIZEOF_OFF_T 4
  297. # define SIZEOF_FPOS_T 8
  298. # define SIZEOF_HKEY 4
  299. # define SIZEOF_SIZE_T 4
  300. # define ALIGNOF_SIZE_T 4
  301. /* MS VS2005 changes time_t to a 64-bit type on all platforms */
  302. # if defined(_MSC_VER) && _MSC_VER >= 1400
  303. # define SIZEOF_TIME_T 8
  304. # else
  305. # define SIZEOF_TIME_T 4
  306. # endif
  307. # define ALIGNOF_MAX_ALIGN_T 8
  308. #endif
  309. #ifdef _DEBUG
  310. # define Py_DEBUG
  311. #endif
  312. #ifdef MS_WIN32
  313. #define SIZEOF_SHORT 2
  314. #define SIZEOF_INT 4
  315. #define SIZEOF_LONG 4
  316. #define ALIGNOF_LONG 4
  317. #define SIZEOF_LONG_LONG 8
  318. #define SIZEOF_DOUBLE 8
  319. #define SIZEOF_FLOAT 4
  320. /* VC 7.1 has them and VC 6.0 does not. VC 6.0 has a version number of 1200.
  321. Microsoft eMbedded Visual C++ 4.0 has a version number of 1201 and doesn't
  322. define these.
  323. If some compiler does not provide them, modify the #if appropriately. */
  324. #if defined(_MSC_VER)
  325. #if _MSC_VER > 1300
  326. #define HAVE_UINTPTR_T 1
  327. #define HAVE_INTPTR_T 1
  328. #else
  329. /* VC6, VS 2002 and eVC4 don't support the C99 LL suffix for 64-bit integer literals */
  330. #define Py_LL(x) x##I64
  331. #endif /* _MSC_VER > 1300 */
  332. #endif /* _MSC_VER */
  333. #endif
  334. /* define signed and unsigned exact-width 32-bit and 64-bit types, used in the
  335. implementation of Python integers. */
  336. #define PY_UINT32_T uint32_t
  337. #define PY_UINT64_T uint64_t
  338. #define PY_INT32_T int32_t
  339. #define PY_INT64_T int64_t
  340. /* Fairly standard from here! */
  341. /* Define if on AIX 3.
  342. System headers sometimes define this.
  343. We just want to avoid a redefinition error message. */
  344. #ifndef _ALL_SOURCE
  345. /* #undef _ALL_SOURCE */
  346. #endif
  347. /* Define to empty if the keyword does not work. */
  348. /* #define const */
  349. /* Define to 1 if you have the <conio.h> header file. */
  350. #define HAVE_CONIO_H 1
  351. /* Define to 1 if you have the <direct.h> header file. */
  352. #define HAVE_DIRECT_H 1
  353. /* Define to 1 if you have the declaration of `tzname', and to 0 if you don't.
  354. */
  355. #define HAVE_DECL_TZNAME 1
  356. /* Define if you have dirent.h. */
  357. /* #define DIRENT 1 */
  358. /* Define to the type of elements in the array set by `getgroups'.
  359. Usually this is either `int' or `gid_t'. */
  360. /* #undef GETGROUPS_T */
  361. /* Define to `int' if <sys/types.h> doesn't define. */
  362. /* #undef gid_t */
  363. /* Define if your struct tm has tm_zone. */
  364. /* #undef HAVE_TM_ZONE */
  365. /* Define if you don't have tm_zone but do have the external array
  366. tzname. */
  367. #define HAVE_TZNAME
  368. /* Define to `int' if <sys/types.h> doesn't define. */
  369. /* #undef mode_t */
  370. /* Define if you don't have dirent.h, but have ndir.h. */
  371. /* #undef NDIR */
  372. /* Define to `long' if <sys/types.h> doesn't define. */
  373. /* #undef off_t */
  374. /* Define to `int' if <sys/types.h> doesn't define. */
  375. /* #undef pid_t */
  376. /* Define if the system does not provide POSIX.1 features except
  377. with this defined. */
  378. /* #undef _POSIX_1_SOURCE */
  379. /* Define if you need to in order for stat and other things to work. */
  380. /* #undef _POSIX_SOURCE */
  381. /* Define as the return type of signal handlers (int or void). */
  382. #define RETSIGTYPE void
  383. /* Define to `unsigned' if <sys/types.h> doesn't define. */
  384. /* #undef size_t */
  385. /* Define if you have the ANSI C header files. */
  386. #define STDC_HEADERS 1
  387. /* Define if you don't have dirent.h, but have sys/dir.h. */
  388. /* #undef SYSDIR */
  389. /* Define if you don't have dirent.h, but have sys/ndir.h. */
  390. /* #undef SYSNDIR */
  391. /* Define if you can safely include both <sys/time.h> and <time.h>. */
  392. /* #undef TIME_WITH_SYS_TIME */
  393. /* Define if your <sys/time.h> declares struct tm. */
  394. /* #define TM_IN_SYS_TIME 1 */
  395. /* Define to `int' if <sys/types.h> doesn't define. */
  396. /* #undef uid_t */
  397. /* Define if the closedir function returns void instead of int. */
  398. /* #undef VOID_CLOSEDIR */
  399. /* Define if getpgrp() must be called as getpgrp(0)
  400. and (consequently) setpgrp() as setpgrp(0, 0). */
  401. /* #undef GETPGRP_HAVE_ARGS */
  402. /* Define this if your time.h defines altzone */
  403. /* #define HAVE_ALTZONE */
  404. /* Define if you have the putenv function. */
  405. #define HAVE_PUTENV
  406. /* Define if your compiler supports function prototypes */
  407. #define HAVE_PROTOTYPES
  408. /* Define if you can safely include both <sys/select.h> and <sys/time.h>
  409. (which you can't on SCO ODT 3.0). */
  410. /* #undef SYS_SELECT_WITH_SYS_TIME */
  411. /* Define if you want build the _decimal module using a coroutine-local rather
  412. than a thread-local context */
  413. #define WITH_DECIMAL_CONTEXTVAR 1
  414. /* Define if you want documentation strings in extension modules */
  415. #define WITH_DOC_STRINGS 1
  416. /* Define if you want to compile in rudimentary thread support */
  417. /* #undef WITH_THREAD */
  418. /* Define if you want to use the GNU readline library */
  419. /* #define WITH_READLINE 1 */
  420. /* Use Python's own small-block memory-allocator. */
  421. #define WITH_PYMALLOC 1
  422. /* Define if you want to compile in object freelists optimization */
  423. #define WITH_FREELISTS 1
  424. /* Define if you have clock. */
  425. /* #define HAVE_CLOCK */
  426. /* Define when any dynamic module loading is enabled */
  427. #define HAVE_DYNAMIC_LOADING
  428. /* Define if you have ftime. */
  429. #define HAVE_FTIME
  430. /* Define if you have getpeername. */
  431. #define HAVE_GETPEERNAME
  432. /* Define if you have getpgrp. */
  433. /* #undef HAVE_GETPGRP */
  434. /* Define if you have getpid. */
  435. #define HAVE_GETPID
  436. /* Define if you have gettimeofday. */
  437. /* #undef HAVE_GETTIMEOFDAY */
  438. /* Define if you have getwd. */
  439. /* #undef HAVE_GETWD */
  440. /* Define if you have lstat. */
  441. /* #undef HAVE_LSTAT */
  442. /* Define if you have the mktime function. */
  443. #define HAVE_MKTIME
  444. /* Define if you have nice. */
  445. /* #undef HAVE_NICE */
  446. /* Define if you have readlink. */
  447. /* #undef HAVE_READLINK */
  448. /* Define if you have setpgid. */
  449. /* #undef HAVE_SETPGID */
  450. /* Define if you have setpgrp. */
  451. /* #undef HAVE_SETPGRP */
  452. /* Define if you have setsid. */
  453. /* #undef HAVE_SETSID */
  454. /* Define if you have setvbuf. */
  455. #define HAVE_SETVBUF
  456. /* Define if you have siginterrupt. */
  457. /* #undef HAVE_SIGINTERRUPT */
  458. /* Define to 1 if you have the `shutdown' function. */
  459. #define HAVE_SHUTDOWN 1
  460. /* Define if you have symlink. */
  461. /* #undef HAVE_SYMLINK */
  462. /* Define if you have tcgetpgrp. */
  463. /* #undef HAVE_TCGETPGRP */
  464. /* Define if you have tcsetpgrp. */
  465. /* #undef HAVE_TCSETPGRP */
  466. /* Define if you have times. */
  467. /* #undef HAVE_TIMES */
  468. /* Define to 1 if you have the `umask' function. */
  469. #define HAVE_UMASK 1
  470. /* Define if you have uname. */
  471. /* #undef HAVE_UNAME */
  472. /* Define if you have waitpid. */
  473. /* #undef HAVE_WAITPID */
  474. /* Define to 1 if you have the `wcsftime' function. */
  475. #if defined(_MSC_VER) && _MSC_VER >= 1310
  476. #define HAVE_WCSFTIME 1
  477. #endif
  478. /* Define to 1 if you have the `wcscoll' function. */
  479. #define HAVE_WCSCOLL 1
  480. /* Define to 1 if you have the `wcsxfrm' function. */
  481. #define HAVE_WCSXFRM 1
  482. /* Define if the zlib library has inflateCopy */
  483. #define HAVE_ZLIB_COPY 1
  484. /* Define if you have the <dlfcn.h> header file. */
  485. /* #undef HAVE_DLFCN_H */
  486. /* Define to 1 if you have the <errno.h> header file. */
  487. #define HAVE_ERRNO_H 1
  488. /* Define if you have the <fcntl.h> header file. */
  489. #define HAVE_FCNTL_H 1
  490. /* Define to 1 if you have the <process.h> header file. */
  491. #define HAVE_PROCESS_H 1
  492. /* Define to 1 if you have the <signal.h> header file. */
  493. #define HAVE_SIGNAL_H 1
  494. /* Define if you have the <stddef.h> header file. */
  495. #define HAVE_STDDEF_H 1
  496. /* Define if you have the <sys/audioio.h> header file. */
  497. /* #undef HAVE_SYS_AUDIOIO_H */
  498. /* Define if you have the <sys/param.h> header file. */
  499. /* #define HAVE_SYS_PARAM_H 1 */
  500. /* Define if you have the <sys/select.h> header file. */
  501. /* #define HAVE_SYS_SELECT_H 1 */
  502. /* Define to 1 if you have the <sys/stat.h> header file. */
  503. #define HAVE_SYS_STAT_H 1
  504. /* Define if you have the <sys/time.h> header file. */
  505. /* #define HAVE_SYS_TIME_H 1 */
  506. /* Define if you have the <sys/times.h> header file. */
  507. /* #define HAVE_SYS_TIMES_H 1 */
  508. /* Define to 1 if you have the <sys/types.h> header file. */
  509. #define HAVE_SYS_TYPES_H 1
  510. /* Define if you have the <sys/un.h> header file. */
  511. /* #define HAVE_SYS_UN_H 1 */
  512. /* Define if you have the <sys/utime.h> header file. */
  513. /* #define HAVE_SYS_UTIME_H 1 */
  514. /* Define if you have the <sys/utsname.h> header file. */
  515. /* #define HAVE_SYS_UTSNAME_H 1 */
  516. /* Define if you have the <unistd.h> header file. */
  517. /* #define HAVE_UNISTD_H 1 */
  518. /* Define if you have the <utime.h> header file. */
  519. /* #define HAVE_UTIME_H 1 */
  520. /* Define if the compiler provides a wchar.h header file. */
  521. #define HAVE_WCHAR_H 1
  522. /* The size of `wchar_t', as computed by sizeof. */
  523. #define SIZEOF_WCHAR_T 2
  524. /* The size of `_Bool', as computed by sizeof. */
  525. #define SIZEOF__BOOL 1
  526. /* The size of `pid_t', as computed by sizeof. */
  527. #define SIZEOF_PID_T SIZEOF_INT
  528. /* Define if you have the dl library (-ldl). */
  529. /* #undef HAVE_LIBDL */
  530. /* Define if you have the mpc library (-lmpc). */
  531. /* #undef HAVE_LIBMPC */
  532. /* Define if you have the nsl library (-lnsl). */
  533. #define HAVE_LIBNSL 1
  534. /* Define if you have the seq library (-lseq). */
  535. /* #undef HAVE_LIBSEQ */
  536. /* Define if you have the socket library (-lsocket). */
  537. #define HAVE_LIBSOCKET 1
  538. /* Define if you have the sun library (-lsun). */
  539. /* #undef HAVE_LIBSUN */
  540. /* Define if you have the termcap library (-ltermcap). */
  541. /* #undef HAVE_LIBTERMCAP */
  542. /* Define if you have the termlib library (-ltermlib). */
  543. /* #undef HAVE_LIBTERMLIB */
  544. /* Define if you have the thread library (-lthread). */
  545. /* #undef HAVE_LIBTHREAD */
  546. /* WinSock does not use a bitmask in select, and uses
  547. socket handles greater than FD_SETSIZE */
  548. #define Py_SOCKET_FD_CAN_BE_GE_FD_SETSIZE
  549. /* Define if C doubles are 64-bit IEEE 754 binary format, stored with the
  550. least significant byte first */
  551. #define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1
  552. /* Define to 1 if you have the `erf' function. */
  553. #define HAVE_ERF 1
  554. /* Define to 1 if you have the `erfc' function. */
  555. #define HAVE_ERFC 1
  556. // netdb.h functions (provided by winsock.h)
  557. #define HAVE_GETHOSTNAME 1
  558. #define HAVE_GETHOSTBYADDR 1
  559. #define HAVE_GETHOSTBYNAME 1
  560. #define HAVE_GETPROTOBYNAME 1
  561. #define HAVE_GETSERVBYNAME 1
  562. #define HAVE_GETSERVBYPORT 1
  563. // sys/socket.h functions (provided by winsock.h)
  564. #define HAVE_INET_PTON 1
  565. #define HAVE_INET_NTOA 1
  566. #define HAVE_ACCEPT 1
  567. #define HAVE_BIND 1
  568. #define HAVE_CONNECT 1
  569. #define HAVE_GETSOCKNAME 1
  570. #define HAVE_LISTEN 1
  571. #define HAVE_RECVFROM 1
  572. #define HAVE_SENDTO 1
  573. #define HAVE_SETSOCKOPT 1
  574. #define HAVE_SOCKET 1
  575. /* Define to 1 if you have the `dup' function. */
  576. #define HAVE_DUP 1
  577. /* framework name */
  578. #define _PYTHONFRAMEWORK ""
  579. /* Define if libssl has X509_VERIFY_PARAM_set1_host and related function */
  580. #define HAVE_X509_VERIFY_PARAM_SET1_HOST 1
  581. #endif /* !Py_CONFIG_H */