pyconfig.h 22 KB

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