| Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 1 | #ifndef Py_CONFIG_H | 
 | 2 | #define Py_CONFIG_H | 
| Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 3 |  | 
| Tim Peters | 76f373d | 2001-07-26 21:34:59 +0000 | [diff] [blame] | 4 | /* pyconfig.h.  NOT Generated automatically by configure. | 
| Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 5 |  | 
 | 6 | This is a manually maintained version used for the Watcom, | 
| Walter Dörwald | f0dfc7a | 2003-10-20 14:01:56 +0000 | [diff] [blame] | 7 | Borland and Microsoft Visual C++ compilers.  It is a | 
| Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 8 | standard part of the Python distribution. | 
 | 9 |  | 
| Guido van Rossum | 950a126 | 1996-07-30 17:38:17 +0000 | [diff] [blame] | 10 | WINDOWS DEFINES: | 
 | 11 | The code specific to Windows should be wrapped around one of | 
 | 12 | the following #defines | 
 | 13 |  | 
| Guido van Rossum | c66ae96 | 2000-05-08 14:14:48 +0000 | [diff] [blame] | 14 | MS_WIN64 - Code specific to the MS Win64 API | 
| Martin v. Löwis | 6238d2b | 2002-06-30 15:26:10 +0000 | [diff] [blame] | 15 | MS_WIN32 - Code specific to the MS Win32 (and Win64) API (obsolete, this covers all supported APIs) | 
| Guido van Rossum | 950a126 | 1996-07-30 17:38:17 +0000 | [diff] [blame] | 16 | MS_WINDOWS - Code specific to Windows, but all versions. | 
| Martin v. Löwis | a43190b | 2006-05-22 09:15:18 +0000 | [diff] [blame] | 17 | MS_WINCE - Code specific to Windows CE | 
| Mark Hammond | 8235ea1 | 2002-07-19 06:55:41 +0000 | [diff] [blame] | 18 | Py_ENABLE_SHARED - Code if the Python core is built as a DLL. | 
| Guido van Rossum | 950a126 | 1996-07-30 17:38:17 +0000 | [diff] [blame] | 19 |  | 
 | 20 | Also note that neither "_M_IX86" or "_MSC_VER" should be used for | 
 | 21 | any purpose other than "Windows Intel x86 specific" and "Microsoft | 
 | 22 | compiler specific".  Therefore, these should be very rare. | 
 | 23 |  | 
| Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 24 |  | 
| Mark Hammond | 8235ea1 | 2002-07-19 06:55:41 +0000 | [diff] [blame] | 25 | NOTE: The following symbols are deprecated: | 
 | 26 | NT, WIN32, USE_DL_EXPORT, USE_DL_IMPORT, DL_EXPORT, DL_IMPORT | 
 | 27 | MS_CORE_DLL. | 
| Fred Drake | 91c4e2b | 2000-06-19 13:41:54 +0000 | [diff] [blame] | 28 |  | 
| Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 29 | */ | 
 | 30 |  | 
| Martin v. Löwis | a43190b | 2006-05-22 09:15:18 +0000 | [diff] [blame] | 31 | #ifdef _WIN32_WCE | 
 | 32 | #define MS_WINCE | 
 | 33 | #endif | 
 | 34 |  | 
| Martin v. Löwis | e2a0602 | 2005-11-29 17:09:13 +0000 | [diff] [blame] | 35 | /* Visual Studio 2005 introduces deprecation warnings for | 
 | 36 |    "insecure" and POSIX functions. The insecure functions should | 
| Walter Dörwald | 51490ac | 2005-11-30 20:16:17 +0000 | [diff] [blame] | 37 |    be replaced by *_s versions (according to Microsoft); the | 
| Martin v. Löwis | e2a0602 | 2005-11-29 17:09:13 +0000 | [diff] [blame] | 38 |    POSIX functions by _* versions (which, according to Microsoft, | 
 | 39 |    would be ISO C conforming). Neither renaming is feasible, so | 
 | 40 |    we just silence the warnings. */ | 
 | 41 |  | 
| Martin v. Löwis | 2396f4c | 2006-11-21 18:21:34 +0000 | [diff] [blame] | 42 | #ifndef _CRT_SECURE_NO_DEPRECATE | 
| Martin v. Löwis | e2a0602 | 2005-11-29 17:09:13 +0000 | [diff] [blame] | 43 | #define _CRT_SECURE_NO_DEPRECATE 1 | 
| Martin v. Löwis | 2396f4c | 2006-11-21 18:21:34 +0000 | [diff] [blame] | 44 | #endif | 
 | 45 | #ifndef _CRT_NONSTDC_NO_DEPRECATE | 
| Martin v. Löwis | e2a0602 | 2005-11-29 17:09:13 +0000 | [diff] [blame] | 46 | #define _CRT_NONSTDC_NO_DEPRECATE 1 | 
| Martin v. Löwis | 2396f4c | 2006-11-21 18:21:34 +0000 | [diff] [blame] | 47 | #endif | 
| Martin v. Löwis | e2a0602 | 2005-11-29 17:09:13 +0000 | [diff] [blame] | 48 |  | 
| Martin v. Löwis | a43190b | 2006-05-22 09:15:18 +0000 | [diff] [blame] | 49 | /* Windows CE does not have these */ | 
 | 50 | #ifndef MS_WINCE | 
 | 51 | #define HAVE_IO_H | 
| Tim Peters | 58e0a8c | 2001-05-14 22:32:33 +0000 | [diff] [blame] | 52 | #define HAVE_SYS_UTIME_H | 
| Fred Drake | 832181e | 2001-07-17 20:35:59 +0000 | [diff] [blame] | 53 | #define HAVE_TEMPNAM | 
 | 54 | #define HAVE_TMPFILE | 
 | 55 | #define HAVE_TMPNAM | 
| Mark Hammond | 8235ea1 | 2002-07-19 06:55:41 +0000 | [diff] [blame] | 56 | #define HAVE_CLOCK | 
| Mark Hammond | 8235ea1 | 2002-07-19 06:55:41 +0000 | [diff] [blame] | 57 | #define HAVE_STRERROR | 
| Martin v. Löwis | a43190b | 2006-05-22 09:15:18 +0000 | [diff] [blame] | 58 | #endif | 
 | 59 |  | 
 | 60 | #ifdef HAVE_IO_H | 
 | 61 | #include <io.h> | 
 | 62 | #endif | 
 | 63 |  | 
 | 64 | #define HAVE_HYPOT | 
 | 65 | #define HAVE_STRFTIME | 
| Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 66 | #define DONT_HAVE_SIG_ALARM | 
 | 67 | #define DONT_HAVE_SIG_PAUSE | 
| Guido van Rossum | 1bc716f | 1996-06-28 19:12:06 +0000 | [diff] [blame] | 68 | #define LONG_BIT	32 | 
| Mark Hammond | 8235ea1 | 2002-07-19 06:55:41 +0000 | [diff] [blame] | 69 | #define WORD_BIT 32 | 
| Guido van Rossum | 950a126 | 1996-07-30 17:38:17 +0000 | [diff] [blame] | 70 | #define PREFIX "" | 
 | 71 | #define EXEC_PREFIX "" | 
| Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 72 |  | 
| Mark Hammond | 8235ea1 | 2002-07-19 06:55:41 +0000 | [diff] [blame] | 73 | #define MS_WIN32 /* only support win32 and greater. */ | 
 | 74 | #define MS_WINDOWS | 
 | 75 | #ifndef PYTHONPATH | 
 | 76 | #	define PYTHONPATH ".\\DLLs;.\\lib;.\\lib\\plat-win;.\\lib\\lib-tk" | 
 | 77 | #endif | 
 | 78 | #define NT_THREADS | 
 | 79 | #define WITH_THREAD | 
 | 80 | #ifndef NETSCAPE_PI | 
 | 81 | #define USE_SOCKET | 
 | 82 | #endif | 
 | 83 |  | 
| Martin v. Löwis | a43190b | 2006-05-22 09:15:18 +0000 | [diff] [blame] | 84 | #ifdef MS_WINCE | 
| Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 85 | /* Python uses GetVersion() to distinguish between | 
 | 86 |  * Windows NT and 9x/ME where OS Unicode support is concerned. | 
 | 87 |  * Windows CE supports Unicode in the same way as NT so we | 
 | 88 |  * define the missing GetVersion() accordingly. | 
 | 89 |  */ | 
 | 90 | #define GetVersion() (4) | 
 | 91 | /* Windows CE does not support environment variables */ | 
 | 92 | #define getenv(v) (NULL) | 
 | 93 | #define environ (NULL) | 
| Martin v. Löwis | a43190b | 2006-05-22 09:15:18 +0000 | [diff] [blame] | 94 | #endif | 
 | 95 |  | 
| Mark Hammond | 8235ea1 | 2002-07-19 06:55:41 +0000 | [diff] [blame] | 96 | /* Compiler specific defines */ | 
 | 97 |  | 
 | 98 | /* ------------------------------------------------------------------------*/ | 
| Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 99 | /* Microsoft C defines _MSC_VER */ | 
| Guido van Rossum | c66ae96 | 2000-05-08 14:14:48 +0000 | [diff] [blame] | 100 | #ifdef _MSC_VER | 
 | 101 |  | 
| Tim Peters | 0628433 | 2002-11-11 19:44:39 +0000 | [diff] [blame] | 102 | /* We want COMPILER to expand to a string containing _MSC_VER's *value*. | 
 | 103 |  * This is horridly tricky, because the stringization operator only works | 
 | 104 |  * on macro arguments, and doesn't evaluate macros passed *as* arguments. | 
 | 105 |  * Attempts simpler than the following appear doomed to produce "_MSC_VER" | 
 | 106 |  * literally in the string. | 
 | 107 |  */ | 
 | 108 | #define _Py_PASTE_VERSION(SUFFIX) \ | 
 | 109 | 	("[MSC v." _Py_STRINGIZE(_MSC_VER) " " SUFFIX "]") | 
 | 110 | /* e.g., this produces, after compile-time string catenation, | 
 | 111 |  * 	("[MSC v.1200 32 bit (Intel)]") | 
 | 112 |  * | 
 | 113 |  * _Py_STRINGIZE(_MSC_VER) expands to | 
 | 114 |  * _Py_STRINGIZE1((_MSC_VER)) expands to | 
 | 115 |  * _Py_STRINGIZE2(_MSC_VER) but as this call is the result of token-pasting | 
 | 116 |  *      it's scanned again for macros and so further expands to (under MSVC 6) | 
 | 117 |  * _Py_STRINGIZE2(1200) which then expands to | 
 | 118 |  * "1200" | 
 | 119 |  */ | 
 | 120 | #define _Py_STRINGIZE(X) _Py_STRINGIZE1((X)) | 
 | 121 | #define _Py_STRINGIZE1(X) _Py_STRINGIZE2 ## X | 
 | 122 | #define _Py_STRINGIZE2(X) #X | 
 | 123 |  | 
| Guido van Rossum | c66ae96 | 2000-05-08 14:14:48 +0000 | [diff] [blame] | 124 | /* MSVC defines _WINxx to differentiate the windows platform types | 
 | 125 |  | 
 | 126 |    Note that for compatibility reasons _WIN32 is defined on Win32 | 
 | 127 |    *and* on Win64. For the same reasons, in Python, MS_WIN32 is | 
 | 128 |    defined on Win32 *and* Win64. Win32 only code must therefore be | 
 | 129 |    guarded as follows: | 
 | 130 |    	#if defined(MS_WIN32) && !defined(MS_WIN64) | 
 | 131 | */ | 
 | 132 | #ifdef _WIN64 | 
 | 133 | #define MS_WIN64 | 
 | 134 | #endif | 
| Guido van Rossum | c66ae96 | 2000-05-08 14:14:48 +0000 | [diff] [blame] | 135 |  | 
 | 136 | /* set the COMPILER */ | 
 | 137 | #ifdef MS_WIN64 | 
 | 138 | #ifdef _M_IX86 | 
| Tim Peters | c7ff90b | 2002-11-11 20:21:06 +0000 | [diff] [blame] | 139 | #define COMPILER _Py_PASTE_VERSION("64 bit (Intel)") | 
| Martin v. Löwis | 512efb4 | 2004-07-27 14:16:14 +0000 | [diff] [blame] | 140 | #elif defined(_M_IA64) | 
 | 141 | #define COMPILER _Py_PASTE_VERSION("64 bit (Itanium)") | 
 | 142 | #elif defined(_M_AMD64) | 
 | 143 | #define COMPILER _Py_PASTE_VERSION("64 bit (AMD64)") | 
| Guido van Rossum | c66ae96 | 2000-05-08 14:14:48 +0000 | [diff] [blame] | 144 | #else | 
| Tim Peters | 0628433 | 2002-11-11 19:44:39 +0000 | [diff] [blame] | 145 | #define COMPILER _Py_PASTE_VERSION("64 bit (Unknown)") | 
| Guido van Rossum | c66ae96 | 2000-05-08 14:14:48 +0000 | [diff] [blame] | 146 | #endif | 
 | 147 | #endif /* MS_WIN64 */ | 
 | 148 |  | 
| Martin v. Löwis | a43190b | 2006-05-22 09:15:18 +0000 | [diff] [blame] | 149 | /* _W64 is not defined for VC6 or eVC4 */ | 
 | 150 | #ifndef _W64 | 
 | 151 | #define _W64 | 
 | 152 | #endif | 
 | 153 |  | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 154 | /* Define like size_t, omitting the "unsigned" */ | 
 | 155 | #ifdef MS_WIN64 | 
 | 156 | typedef __int64 ssize_t; | 
 | 157 | #else | 
 | 158 | typedef _W64 int ssize_t; | 
 | 159 | #endif | 
 | 160 | #define HAVE_SSIZE_T 1 | 
 | 161 |  | 
| Guido van Rossum | c66ae96 | 2000-05-08 14:14:48 +0000 | [diff] [blame] | 162 | #if defined(MS_WIN32) && !defined(MS_WIN64) | 
 | 163 | #ifdef _M_IX86 | 
| Tim Peters | 0628433 | 2002-11-11 19:44:39 +0000 | [diff] [blame] | 164 | #define COMPILER _Py_PASTE_VERSION("32 bit (Intel)") | 
| Guido van Rossum | c66ae96 | 2000-05-08 14:14:48 +0000 | [diff] [blame] | 165 | #else | 
| Tim Peters | 0628433 | 2002-11-11 19:44:39 +0000 | [diff] [blame] | 166 | #define COMPILER _Py_PASTE_VERSION("32 bit (Unknown)") | 
| Guido van Rossum | c66ae96 | 2000-05-08 14:14:48 +0000 | [diff] [blame] | 167 | #endif | 
 | 168 | #endif /* MS_WIN32 && !MS_WIN64 */ | 
 | 169 |  | 
| Mark Hammond | 8235ea1 | 2002-07-19 06:55:41 +0000 | [diff] [blame] | 170 | typedef int pid_t; | 
 | 171 | #define hypot _hypot | 
 | 172 |  | 
| Tim Peters | 862f059 | 2004-09-23 19:11:32 +0000 | [diff] [blame] | 173 | #include <float.h> | 
 | 174 | #define Py_IS_NAN _isnan | 
 | 175 | #define Py_IS_INFINITY(X) (!_finite(X) && !_isnan(X)) | 
| Kristján Valur Jónsson | f94323f | 2006-05-25 15:53:30 +0000 | [diff] [blame] | 176 | #define Py_IS_FINITE(X) _finite(X) | 
| Tim Peters | 862f059 | 2004-09-23 19:11:32 +0000 | [diff] [blame] | 177 |  | 
| Kristján Valur Jónsson | dbeaa69 | 2006-06-09 16:28:01 +0000 | [diff] [blame] | 178 | /* Turn off warnings about deprecated C runtime functions in  | 
 | 179 |    VisualStudio .NET 2005 */ | 
 | 180 | #if _MSC_VER >= 1400 && !defined _CRT_SECURE_NO_DEPRECATE | 
 | 181 | #define _CRT_SECURE_NO_DEPRECATE | 
 | 182 | #endif | 
 | 183 |  | 
| Guido van Rossum | c66ae96 | 2000-05-08 14:14:48 +0000 | [diff] [blame] | 184 | #endif /* _MSC_VER */ | 
| Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 185 |  | 
| Mark Hammond | 8235ea1 | 2002-07-19 06:55:41 +0000 | [diff] [blame] | 186 | /* define some ANSI types that are not defined in earlier Win headers */ | 
 | 187 | #if defined(_MSC_VER) && _MSC_VER >= 1200 | 
 | 188 | /* This file only exists in VC 6.0 or higher */ | 
 | 189 | #include <basetsd.h> | 
| Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 190 | #endif | 
| Guido van Rossum | 950a126 | 1996-07-30 17:38:17 +0000 | [diff] [blame] | 191 |  | 
| Mark Hammond | 8235ea1 | 2002-07-19 06:55:41 +0000 | [diff] [blame] | 192 | /* ------------------------------------------------------------------------*/ | 
| Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 193 | /* The Borland compiler defines __BORLANDC__ */ | 
| Guido van Rossum | cf6c0ea | 1996-10-21 14:52:24 +0000 | [diff] [blame] | 194 | /* XXX These defines are likely incomplete, but should be easy to fix. */ | 
| Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 195 | #ifdef __BORLANDC__ | 
 | 196 | #define COMPILER "[Borland]" | 
| Mark Hammond | c756bdb | 2000-08-15 22:33:59 +0000 | [diff] [blame] | 197 |  | 
 | 198 | #ifdef _WIN32 | 
| Mark Hammond | c756bdb | 2000-08-15 22:33:59 +0000 | [diff] [blame] | 199 | /* tested with BCC 5.5 (__BORLANDC__ >= 0x0550) | 
 | 200 |  */ | 
| Mark Hammond | c756bdb | 2000-08-15 22:33:59 +0000 | [diff] [blame] | 201 |  | 
| Mark Hammond | c756bdb | 2000-08-15 22:33:59 +0000 | [diff] [blame] | 202 | typedef int pid_t; | 
| Mark Hammond | c756bdb | 2000-08-15 22:33:59 +0000 | [diff] [blame] | 203 | /* BCC55 seems to understand __declspec(dllimport), it is used in its | 
| Mark Hammond | 8235ea1 | 2002-07-19 06:55:41 +0000 | [diff] [blame] | 204 |    own header files (winnt.h, ...) - so we can do nothing and get the default*/ | 
| Mark Hammond | c756bdb | 2000-08-15 22:33:59 +0000 | [diff] [blame] | 205 |  | 
| Tim Peters | 58e0a8c | 2001-05-14 22:32:33 +0000 | [diff] [blame] | 206 | #undef HAVE_SYS_UTIME_H | 
 | 207 | #define HAVE_UTIME_H | 
 | 208 | #define HAVE_DIRENT_H | 
| Mark Hammond | 8235ea1 | 2002-07-19 06:55:41 +0000 | [diff] [blame] | 209 |  | 
 | 210 | /* rename a few functions for the Borland compiler */ | 
 | 211 | #include <io.h> | 
 | 212 | #define _chsize chsize | 
 | 213 | #define _setmode setmode | 
| Tim Peters | 7f00deb | 2001-04-21 03:20:47 +0000 | [diff] [blame] | 214 |  | 
| Mark Hammond | c756bdb | 2000-08-15 22:33:59 +0000 | [diff] [blame] | 215 | #else /* !_WIN32 */ | 
| Guido van Rossum | 6042741 | 2000-11-13 17:29:30 +0000 | [diff] [blame] | 216 | #error "Only Win32 and later are supported" | 
| Mark Hammond | c756bdb | 2000-08-15 22:33:59 +0000 | [diff] [blame] | 217 | #endif /* !_WIN32 */ | 
 | 218 |  | 
| Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 219 | #endif /* BORLANDC */ | 
 | 220 |  | 
| Mark Hammond | 8235ea1 | 2002-07-19 06:55:41 +0000 | [diff] [blame] | 221 | /* ------------------------------------------------------------------------*/ | 
| Mark Hammond | c756bdb | 2000-08-15 22:33:59 +0000 | [diff] [blame] | 222 | /* egcs/gnu-win32 defines __GNUC__ and _WIN32 */ | 
 | 223 | #if defined(__GNUC__) && defined(_WIN32) | 
| Tim Peters | b26f363 | 2002-03-22 06:32:32 +0000 | [diff] [blame] | 224 | /* XXX These defines are likely incomplete, but should be easy to fix. | 
| Mark Hammond | c756bdb | 2000-08-15 22:33:59 +0000 | [diff] [blame] | 225 |    They should be complete enough to build extension modules. */ | 
 | 226 | /* Suggested by Rene Liebscher <R.Liebscher@gmx.de> to avoid a GCC 2.91.* | 
 | 227 |    bug that requires structure imports.  More recent versions of the | 
 | 228 |    compiler don't exhibit this bug. | 
 | 229 | */ | 
 | 230 | #if (__GNUC__==2) && (__GNUC_MINOR__<=91) | 
 | 231 | #warning "Please use an up-to-date version of gcc! (>2.91 recommended)" | 
 | 232 | #endif | 
 | 233 |  | 
| Mark Hammond | c756bdb | 2000-08-15 22:33:59 +0000 | [diff] [blame] | 234 | #define COMPILER "[gcc]" | 
| Mark Hammond | c756bdb | 2000-08-15 22:33:59 +0000 | [diff] [blame] | 235 | #define hypot _hypot | 
| Martin v. Löwis | b9a0f91 | 2003-03-29 10:06:18 +0000 | [diff] [blame] | 236 | #define PY_LONG_LONG long long | 
| Mark Hammond | c756bdb | 2000-08-15 22:33:59 +0000 | [diff] [blame] | 237 | #endif /* GNUC */ | 
 | 238 |  | 
| Mark Hammond | 8235ea1 | 2002-07-19 06:55:41 +0000 | [diff] [blame] | 239 | /* ------------------------------------------------------------------------*/ | 
| Mark Hammond | c756bdb | 2000-08-15 22:33:59 +0000 | [diff] [blame] | 240 | /* lcc-win32 defines __LCC__ */ | 
| Mark Hammond | c756bdb | 2000-08-15 22:33:59 +0000 | [diff] [blame] | 241 | #if defined(__LCC__) | 
| Tim Peters | b26f363 | 2002-03-22 06:32:32 +0000 | [diff] [blame] | 242 | /* XXX These defines are likely incomplete, but should be easy to fix. | 
| Mark Hammond | c756bdb | 2000-08-15 22:33:59 +0000 | [diff] [blame] | 243 |    They should be complete enough to build extension modules. */ | 
 | 244 |  | 
| Mark Hammond | c756bdb | 2000-08-15 22:33:59 +0000 | [diff] [blame] | 245 | #define COMPILER "[lcc-win32]" | 
| Mark Hammond | c756bdb | 2000-08-15 22:33:59 +0000 | [diff] [blame] | 246 | typedef int pid_t; | 
| Mark Hammond | 8235ea1 | 2002-07-19 06:55:41 +0000 | [diff] [blame] | 247 | /* __declspec() is supported here too - do nothing to get the defaults */ | 
| Mark Hammond | c756bdb | 2000-08-15 22:33:59 +0000 | [diff] [blame] | 248 |  | 
| Mark Hammond | c756bdb | 2000-08-15 22:33:59 +0000 | [diff] [blame] | 249 | #endif /* LCC */ | 
 | 250 |  | 
| Mark Hammond | 8235ea1 | 2002-07-19 06:55:41 +0000 | [diff] [blame] | 251 | /* ------------------------------------------------------------------------*/ | 
| Guido van Rossum | 950a126 | 1996-07-30 17:38:17 +0000 | [diff] [blame] | 252 | /* End of compilers - finish up */ | 
 | 253 |  | 
| Mark Hammond | 8235ea1 | 2002-07-19 06:55:41 +0000 | [diff] [blame] | 254 | #ifndef NO_STDIO_H | 
 | 255 | #	include <stdio.h> | 
| Guido van Rossum | 361b583 | 2000-06-30 22:17:53 +0000 | [diff] [blame] | 256 | #endif | 
| Fred Drake | a3f6e91 | 2000-06-29 20:44:47 +0000 | [diff] [blame] | 257 |  | 
| Mark Hammond | 8235ea1 | 2002-07-19 06:55:41 +0000 | [diff] [blame] | 258 | /* 64 bit ints are usually spelt __int64 unless compiler has overridden */ | 
 | 259 | #define HAVE_LONG_LONG 1 | 
| Martin v. Löwis | b9a0f91 | 2003-03-29 10:06:18 +0000 | [diff] [blame] | 260 | #ifndef PY_LONG_LONG | 
 | 261 | #	define PY_LONG_LONG __int64 | 
| Mark Hammond | 8235ea1 | 2002-07-19 06:55:41 +0000 | [diff] [blame] | 262 | #endif | 
 | 263 |  | 
| Tim Peters | 0628433 | 2002-11-11 19:44:39 +0000 | [diff] [blame] | 264 | /* For Windows the Python core is in a DLL by default.  Test | 
| Mark Hammond | 8235ea1 | 2002-07-19 06:55:41 +0000 | [diff] [blame] | 265 | Py_NO_ENABLE_SHARED to find out.  Also support MS_NO_COREDLL for b/w compat */ | 
 | 266 | #if !defined(MS_NO_COREDLL) && !defined(Py_NO_ENABLE_SHARED) | 
 | 267 | #	define Py_ENABLE_SHARED 1 /* standard symbol for shared library */ | 
 | 268 | #	define MS_COREDLL	/* deprecated old symbol */ | 
 | 269 | #endif /* !MS_NO_COREDLL && ... */ | 
 | 270 |  | 
 | 271 | /* Deprecated USE_DL_EXPORT macro - please use Py_BUILD_CORE */ | 
 | 272 | #ifdef USE_DL_EXPORT | 
 | 273 | #	define Py_BUILD_CORE | 
 | 274 | #endif /* USE_DL_EXPORT */ | 
 | 275 |  | 
 | 276 | /*  All windows compilers that use this header support __declspec */ | 
 | 277 | #define HAVE_DECLSPEC_DLL | 
 | 278 |  | 
 | 279 | /* For an MSVC DLL, we can nominate the .lib files used by extensions */ | 
 | 280 | #ifdef MS_COREDLL | 
 | 281 | #	ifndef Py_BUILD_CORE /* not building the core - must be an ext */ | 
 | 282 | #		if defined(_MSC_VER) | 
| Tim Peters | 0628433 | 2002-11-11 19:44:39 +0000 | [diff] [blame] | 283 | 			/* So MSVC users need not specify the .lib file in | 
| Mark Hammond | 8235ea1 | 2002-07-19 06:55:41 +0000 | [diff] [blame] | 284 | 			their Makefile (other compilers are generally | 
 | 285 | 			taken care of by distutils.) */ | 
 | 286 | #			ifdef _DEBUG | 
| Thomas Heller | 6ad6ee6 | 2004-12-01 19:39:52 +0000 | [diff] [blame] | 287 | #				pragma comment(lib,"python25_d.lib") | 
| Mark Hammond | 8235ea1 | 2002-07-19 06:55:41 +0000 | [diff] [blame] | 288 | #			else | 
| Thomas Heller | 6ad6ee6 | 2004-12-01 19:39:52 +0000 | [diff] [blame] | 289 | #				pragma comment(lib,"python25.lib") | 
| Mark Hammond | 8235ea1 | 2002-07-19 06:55:41 +0000 | [diff] [blame] | 290 | #			endif /* _DEBUG */ | 
 | 291 | #		endif /* _MSC_VER */ | 
 | 292 | #	endif /* Py_BUILD_CORE */ | 
 | 293 | #endif /* MS_COREDLL */ | 
 | 294 |  | 
| Guido van Rossum | c66ae96 | 2000-05-08 14:14:48 +0000 | [diff] [blame] | 295 | #if defined(MS_WIN64) | 
| Guido van Rossum | da5cc82 | 2000-05-10 13:25:32 +0000 | [diff] [blame] | 296 | /* maintain "win32" sys.platform for backward compatibility of Python code, | 
 | 297 |    the Win64 API should be close enough to the Win32 API to make this | 
 | 298 |    preferable */ | 
| Fred Drake | a3f6e91 | 2000-06-29 20:44:47 +0000 | [diff] [blame] | 299 | #	define PLATFORM "win32" | 
 | 300 | #	define SIZEOF_VOID_P 8 | 
 | 301 | #	define SIZEOF_TIME_T 8 | 
 | 302 | #	define SIZEOF_OFF_T 4 | 
 | 303 | #	define SIZEOF_FPOS_T 8 | 
 | 304 | #	define SIZEOF_HKEY 8 | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 305 | #	define SIZEOF_SIZE_T 8 | 
| Fred Drake | a3f6e91 | 2000-06-29 20:44:47 +0000 | [diff] [blame] | 306 | /* configure.in defines HAVE_LARGEFILE_SUPPORT iff HAVE_LONG_LONG, | 
| Martin v. Löwis | b9a0f91 | 2003-03-29 10:06:18 +0000 | [diff] [blame] | 307 |    sizeof(off_t) > sizeof(long), and sizeof(PY_LONG_LONG) >= sizeof(off_t). | 
| Fred Drake | a3f6e91 | 2000-06-29 20:44:47 +0000 | [diff] [blame] | 308 |    On Win64 the second condition is not true, but if fpos_t replaces off_t | 
 | 309 |    then this is true. The uses of HAVE_LARGEFILE_SUPPORT imply that Win64 | 
 | 310 |    should define this. */ | 
 | 311 | #	define HAVE_LARGEFILE_SUPPORT | 
| Guido van Rossum | c66ae96 | 2000-05-08 14:14:48 +0000 | [diff] [blame] | 312 | #elif defined(MS_WIN32) | 
| Fred Drake | a3f6e91 | 2000-06-29 20:44:47 +0000 | [diff] [blame] | 313 | #	define PLATFORM "win32" | 
| Tim Peters | 6e13a56 | 2001-09-06 00:32:15 +0000 | [diff] [blame] | 314 | #	define HAVE_LARGEFILE_SUPPORT | 
| Tim Peters | 0628433 | 2002-11-11 19:44:39 +0000 | [diff] [blame] | 315 | #	define SIZEOF_VOID_P 4 | 
| Tim Peters | 0628433 | 2002-11-11 19:44:39 +0000 | [diff] [blame] | 316 | #	define SIZEOF_OFF_T 4 | 
 | 317 | #	define SIZEOF_FPOS_T 8 | 
 | 318 | #	define SIZEOF_HKEY 4 | 
| Martin v. Löwis | 18e1655 | 2006-02-15 17:27:45 +0000 | [diff] [blame] | 319 | #	define SIZEOF_SIZE_T 4 | 
| Martin v. Löwis | f8d7671 | 2006-03-06 16:32:05 +0000 | [diff] [blame] | 320 | 	/* MS VS2005 changes time_t to an 64-bit type on all platforms */ | 
| Martin v. Löwis | a2d4d6c | 2006-03-06 16:30:25 +0000 | [diff] [blame] | 321 | #	if defined(_MSC_VER) && _MSC_VER >= 1400 | 
 | 322 | #	define SIZEOF_TIME_T 8 | 
 | 323 | #	else | 
 | 324 | #	define SIZEOF_TIME_T 4 | 
 | 325 | #	endif | 
| Guido van Rossum | c66ae96 | 2000-05-08 14:14:48 +0000 | [diff] [blame] | 326 | #endif | 
 | 327 |  | 
| Mark Hammond | 8235ea1 | 2002-07-19 06:55:41 +0000 | [diff] [blame] | 328 | #ifdef _DEBUG | 
 | 329 | #	define Py_DEBUG | 
 | 330 | #endif | 
 | 331 |  | 
| Guido van Rossum | 950a126 | 1996-07-30 17:38:17 +0000 | [diff] [blame] | 332 |  | 
| Guido van Rossum | f4aeb84 | 1998-02-19 20:59:23 +0000 | [diff] [blame] | 333 | #ifdef MS_WIN32 | 
| Guido van Rossum | d3ab101 | 1998-05-29 02:53:29 +0000 | [diff] [blame] | 334 |  | 
| Tim Peters | 208efe5 | 2001-06-26 22:40:47 +0000 | [diff] [blame] | 335 | #define SIZEOF_SHORT 2 | 
| Guido van Rossum | d3ab101 | 1998-05-29 02:53:29 +0000 | [diff] [blame] | 336 | #define SIZEOF_INT 4 | 
 | 337 | #define SIZEOF_LONG 4 | 
| Guido van Rossum | b00d252 | 1998-09-17 13:19:36 +0000 | [diff] [blame] | 338 | #define SIZEOF_LONG_LONG 8 | 
| Tim Peters | 31a4262 | 2006-05-22 11:29:41 +0000 | [diff] [blame] | 339 | #define SIZEOF_DOUBLE 8 | 
 | 340 | #define SIZEOF_FLOAT 4 | 
| Guido van Rossum | d3ab101 | 1998-05-29 02:53:29 +0000 | [diff] [blame] | 341 |  | 
| Raymond Hettinger | cbcff93 | 2004-08-03 08:52:46 +0000 | [diff] [blame] | 342 | /* VC 7.1 has them and VC 6.0 does not.  VC 6.0 has a version number of 1200. | 
| Martin v. Löwis | a43190b | 2006-05-22 09:15:18 +0000 | [diff] [blame] | 343 |    Microsoft eMbedded Visual C++ 4.0 has a version number of 1201 and doesn't | 
 | 344 |    define these. | 
| Raymond Hettinger | cbcff93 | 2004-08-03 08:52:46 +0000 | [diff] [blame] | 345 |    If some compiler does not provide them, modify the #if appropriately. */ | 
| Martin v. Löwis | 15b23a0 | 2004-10-15 04:26:18 +0000 | [diff] [blame] | 346 | #if defined(_MSC_VER) | 
| Martin v. Löwis | a43190b | 2006-05-22 09:15:18 +0000 | [diff] [blame] | 347 | #if _MSC_VER > 1201 | 
| Martin v. Löwis | fe393f4 | 2004-07-27 15:57:24 +0000 | [diff] [blame] | 348 | #define HAVE_UINTPTR_T 1 | 
 | 349 | #define HAVE_INTPTR_T 1 | 
| Martin v. Löwis | a43190b | 2006-05-22 09:15:18 +0000 | [diff] [blame] | 350 | #else | 
 | 351 | /* VC6 & eVC4 don't support the C99 LL suffix for 64-bit integer literals */ | 
 | 352 | #define Py_LL(x) x##I64 | 
| Tim Peters | 31a4262 | 2006-05-22 11:29:41 +0000 | [diff] [blame] | 353 | #endif  /* _MSC_VER > 1200  */ | 
| Martin v. Löwis | 15b23a0 | 2004-10-15 04:26:18 +0000 | [diff] [blame] | 354 | #endif  /* _MSC_VER */ | 
| Martin v. Löwis | fe393f4 | 2004-07-27 15:57:24 +0000 | [diff] [blame] | 355 |  | 
| Guido van Rossum | f4aeb84 | 1998-02-19 20:59:23 +0000 | [diff] [blame] | 356 | #endif | 
 | 357 |  | 
| Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 358 | /* Fairly standard from here! */ | 
 | 359 |  | 
 | 360 | /* Define if on AIX 3. | 
 | 361 |    System headers sometimes define this. | 
 | 362 |    We just want to avoid a redefinition error message.  */ | 
 | 363 | #ifndef _ALL_SOURCE | 
 | 364 | /* #undef _ALL_SOURCE */ | 
 | 365 | #endif | 
 | 366 |  | 
 | 367 | /* Define to empty if the keyword does not work.  */ | 
 | 368 | /* #define const  */ | 
 | 369 |  | 
| Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 370 | /* Define to 1 if you have the <conio.h> header file. */ | 
 | 371 | #ifndef MS_WINCE | 
 | 372 | #define HAVE_CONIO_H 1 | 
 | 373 | #endif | 
 | 374 |  | 
 | 375 | /* Define to 1 if you have the <direct.h> header file. */ | 
 | 376 | #ifndef MS_WINCE | 
 | 377 | #define HAVE_DIRECT_H 1 | 
 | 378 | #endif | 
 | 379 |  | 
| Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 380 | /* Define if you have dirent.h.  */ | 
 | 381 | /* #define DIRENT 1 */ | 
 | 382 |  | 
 | 383 | /* Define to the type of elements in the array set by `getgroups'. | 
 | 384 |    Usually this is either `int' or `gid_t'.  */ | 
 | 385 | /* #undef GETGROUPS_T */ | 
 | 386 |  | 
 | 387 | /* Define to `int' if <sys/types.h> doesn't define.  */ | 
 | 388 | /* #undef gid_t */ | 
 | 389 |  | 
 | 390 | /* Define if your struct tm has tm_zone.  */ | 
 | 391 | /* #undef HAVE_TM_ZONE */ | 
 | 392 |  | 
 | 393 | /* Define if you don't have tm_zone but do have the external array | 
 | 394 |    tzname.  */ | 
 | 395 | #define HAVE_TZNAME | 
 | 396 |  | 
| Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 397 | /* Define to `int' if <sys/types.h> doesn't define.  */ | 
 | 398 | /* #undef mode_t */ | 
 | 399 |  | 
 | 400 | /* Define if you don't have dirent.h, but have ndir.h.  */ | 
 | 401 | /* #undef NDIR */ | 
 | 402 |  | 
 | 403 | /* Define to `long' if <sys/types.h> doesn't define.  */ | 
 | 404 | /* #undef off_t */ | 
 | 405 |  | 
 | 406 | /* Define to `int' if <sys/types.h> doesn't define.  */ | 
 | 407 | /* #undef pid_t */ | 
 | 408 |  | 
 | 409 | /* Define if the system does not provide POSIX.1 features except | 
 | 410 |    with this defined.  */ | 
 | 411 | /* #undef _POSIX_1_SOURCE */ | 
 | 412 |  | 
 | 413 | /* Define if you need to in order for stat and other things to work.  */ | 
 | 414 | /* #undef _POSIX_SOURCE */ | 
 | 415 |  | 
 | 416 | /* Define as the return type of signal handlers (int or void).  */ | 
 | 417 | #define RETSIGTYPE void | 
 | 418 |  | 
 | 419 | /* Define to `unsigned' if <sys/types.h> doesn't define.  */ | 
 | 420 | /* #undef size_t */ | 
 | 421 |  | 
| Guido van Rossum | db575db | 2000-04-24 15:37:34 +0000 | [diff] [blame] | 422 | /* Define to `int' if <sys/types.h> doesn't define.  */ | 
| Martin v. Löwis | 272cb40 | 2002-03-01 08:31:07 +0000 | [diff] [blame] | 423 | #if _MSC_VER + 0 >= 1300 | 
 | 424 | /* VC.NET typedefs socklen_t in ws2tcpip.h. */ | 
 | 425 | #else | 
| Guido van Rossum | db575db | 2000-04-24 15:37:34 +0000 | [diff] [blame] | 426 | #define socklen_t int | 
| Martin v. Löwis | 272cb40 | 2002-03-01 08:31:07 +0000 | [diff] [blame] | 427 | #endif | 
| Guido van Rossum | db575db | 2000-04-24 15:37:34 +0000 | [diff] [blame] | 428 |  | 
| Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 429 | /* Define if you have the ANSI C header files.  */ | 
 | 430 | #define STDC_HEADERS 1 | 
 | 431 |  | 
 | 432 | /* Define if you don't have dirent.h, but have sys/dir.h.  */ | 
 | 433 | /* #undef SYSDIR */ | 
 | 434 |  | 
 | 435 | /* Define if you don't have dirent.h, but have sys/ndir.h.  */ | 
 | 436 | /* #undef SYSNDIR */ | 
 | 437 |  | 
 | 438 | /* Define if you can safely include both <sys/time.h> and <time.h>.  */ | 
 | 439 | /* #undef TIME_WITH_SYS_TIME */ | 
 | 440 |  | 
 | 441 | /* Define if your <sys/time.h> declares struct tm.  */ | 
 | 442 | /* #define TM_IN_SYS_TIME 1 */ | 
 | 443 |  | 
 | 444 | /* Define to `int' if <sys/types.h> doesn't define.  */ | 
 | 445 | /* #undef uid_t */ | 
 | 446 |  | 
 | 447 | /* Define if the closedir function returns void instead of int.  */ | 
 | 448 | /* #undef VOID_CLOSEDIR */ | 
 | 449 |  | 
| Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 450 | /* Define if getpgrp() must be called as getpgrp(0) | 
 | 451 |    and (consequently) setpgrp() as setpgrp(0, 0). */ | 
 | 452 | /* #undef GETPGRP_HAVE_ARGS */ | 
 | 453 |  | 
 | 454 | /* Define this if your time.h defines altzone */ | 
 | 455 | /* #define HAVE_ALTZONE */ | 
 | 456 |  | 
| Guido van Rossum | eaf9b6c | 1996-08-22 00:06:59 +0000 | [diff] [blame] | 457 | /* Define if you have the putenv function.  */ | 
| Martin v. Löwis | a43190b | 2006-05-22 09:15:18 +0000 | [diff] [blame] | 458 | #ifndef MS_WINCE | 
| Guido van Rossum | eaf9b6c | 1996-08-22 00:06:59 +0000 | [diff] [blame] | 459 | #define HAVE_PUTENV | 
| Martin v. Löwis | a43190b | 2006-05-22 09:15:18 +0000 | [diff] [blame] | 460 | #endif | 
| Guido van Rossum | eaf9b6c | 1996-08-22 00:06:59 +0000 | [diff] [blame] | 461 |  | 
| Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 462 | /* Define if your compiler supports function prototypes */ | 
 | 463 | #define HAVE_PROTOTYPES | 
 | 464 |  | 
 | 465 | /* Define if  you can safely include both <sys/select.h> and <sys/time.h> | 
 | 466 |    (which you can't on SCO ODT 3.0). */ | 
 | 467 | /* #undef SYS_SELECT_WITH_SYS_TIME */ | 
 | 468 |  | 
| Martin v. Löwis | 2befa48 | 2002-06-09 13:41:37 +0000 | [diff] [blame] | 469 | /* Define if you want documentation strings in extension modules */ | 
 | 470 | #define WITH_DOC_STRINGS 1 | 
 | 471 |  | 
| Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 472 | /* Define if you want to compile in rudimentary thread support */ | 
 | 473 | /* #undef WITH_THREAD */ | 
 | 474 |  | 
 | 475 | /* Define if you want to use the GNU readline library */ | 
 | 476 | /* #define WITH_READLINE 1 */ | 
 | 477 |  | 
| Fredrik Lundh | 9b14ab3 | 2001-06-26 22:59:49 +0000 | [diff] [blame] | 478 | /* Define if you want to have a Unicode type. */ | 
 | 479 | #define Py_USING_UNICODE | 
 | 480 |  | 
 | 481 | /* Define as the integral type used for Unicode representation. */ | 
 | 482 | #define PY_UNICODE_TYPE unsigned short | 
 | 483 |  | 
 | 484 | /* Define as the size of the unicode type. */ | 
 | 485 | #define Py_UNICODE_SIZE SIZEOF_SHORT | 
 | 486 |  | 
| Fredrik Lundh | 793c197 | 2001-06-27 19:49:17 +0000 | [diff] [blame] | 487 | /* Define if you have a useable wchar_t type defined in wchar.h; useable | 
 | 488 |    means wchar_t must be 16-bit unsigned type. (see | 
 | 489 |    Include/unicodeobject.h). */ | 
 | 490 | #if Py_UNICODE_SIZE == 2 | 
 | 491 | #define HAVE_USABLE_WCHAR_T | 
| Mark Hammond | c2e85bd | 2002-10-03 05:10:39 +0000 | [diff] [blame] | 492 |  | 
 | 493 | /* Define to indicate that the Python Unicode representation can be passed | 
 | 494 |    as-is to Win32 Wide API.  */ | 
 | 495 | #define Py_WIN_WIDE_FILENAMES | 
| Fredrik Lundh | 793c197 | 2001-06-27 19:49:17 +0000 | [diff] [blame] | 496 | #endif | 
 | 497 |  | 
| Tim Peters | b26f363 | 2002-03-22 06:32:32 +0000 | [diff] [blame] | 498 | /* Use Python's own small-block memory-allocator. */ | 
 | 499 | #define WITH_PYMALLOC 1 | 
 | 500 |  | 
| Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 501 | /* Define if you have clock.  */ | 
 | 502 | /* #define HAVE_CLOCK */ | 
 | 503 |  | 
| Guido van Rossum | 9f9fa6d | 1999-12-20 22:57:41 +0000 | [diff] [blame] | 504 | /* Define when any dynamic module loading is enabled */ | 
 | 505 | #define HAVE_DYNAMIC_LOADING | 
 | 506 |  | 
| Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 507 | /* Define if you have ftime.  */ | 
| Martin v. Löwis | a43190b | 2006-05-22 09:15:18 +0000 | [diff] [blame] | 508 | #ifndef MS_WINCE | 
| Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 509 | #define HAVE_FTIME | 
| Martin v. Löwis | a43190b | 2006-05-22 09:15:18 +0000 | [diff] [blame] | 510 | #endif | 
| Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 511 |  | 
 | 512 | /* Define if you have getpeername.  */ | 
| Guido van Rossum | c339753 | 1997-05-06 15:58:18 +0000 | [diff] [blame] | 513 | #define HAVE_GETPEERNAME | 
| Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 514 |  | 
 | 515 | /* Define if you have getpgrp.  */ | 
 | 516 | /* #undef HAVE_GETPGRP */ | 
 | 517 |  | 
 | 518 | /* Define if you have getpid.  */ | 
| Martin v. Löwis | a43190b | 2006-05-22 09:15:18 +0000 | [diff] [blame] | 519 | #ifndef MS_WINCE | 
| Guido van Rossum | c339753 | 1997-05-06 15:58:18 +0000 | [diff] [blame] | 520 | #define HAVE_GETPID | 
| Martin v. Löwis | a43190b | 2006-05-22 09:15:18 +0000 | [diff] [blame] | 521 | #endif | 
| Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 522 |  | 
 | 523 | /* Define if you have gettimeofday.  */ | 
 | 524 | /* #undef HAVE_GETTIMEOFDAY */ | 
 | 525 |  | 
 | 526 | /* Define if you have getwd.  */ | 
 | 527 | /* #undef HAVE_GETWD */ | 
 | 528 |  | 
 | 529 | /* Define if you have lstat.  */ | 
 | 530 | /* #undef HAVE_LSTAT */ | 
 | 531 |  | 
| Guido van Rossum | 63096d4 | 1998-04-10 21:28:49 +0000 | [diff] [blame] | 532 | /* Define if you have the mktime function.  */ | 
 | 533 | #define HAVE_MKTIME | 
 | 534 |  | 
| Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 535 | /* Define if you have nice.  */ | 
 | 536 | /* #undef HAVE_NICE */ | 
 | 537 |  | 
 | 538 | /* Define if you have readlink.  */ | 
 | 539 | /* #undef HAVE_READLINK */ | 
 | 540 |  | 
 | 541 | /* Define if you have select.  */ | 
 | 542 | /* #undef HAVE_SELECT */ | 
 | 543 |  | 
 | 544 | /* Define if you have setpgid.  */ | 
 | 545 | /* #undef HAVE_SETPGID */ | 
 | 546 |  | 
 | 547 | /* Define if you have setpgrp.  */ | 
 | 548 | /* #undef HAVE_SETPGRP */ | 
 | 549 |  | 
 | 550 | /* Define if you have setsid.  */ | 
 | 551 | /* #undef HAVE_SETSID */ | 
 | 552 |  | 
| Guido van Rossum | c339753 | 1997-05-06 15:58:18 +0000 | [diff] [blame] | 553 | /* Define if you have setvbuf.  */ | 
 | 554 | #define HAVE_SETVBUF | 
 | 555 |  | 
| Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 556 | /* Define if you have siginterrupt.  */ | 
 | 557 | /* #undef HAVE_SIGINTERRUPT */ | 
 | 558 |  | 
 | 559 | /* Define if you have symlink.  */ | 
 | 560 | /* #undef HAVE_SYMLINK */ | 
 | 561 |  | 
 | 562 | /* Define if you have tcgetpgrp.  */ | 
 | 563 | /* #undef HAVE_TCGETPGRP */ | 
 | 564 |  | 
 | 565 | /* Define if you have tcsetpgrp.  */ | 
 | 566 | /* #undef HAVE_TCSETPGRP */ | 
 | 567 |  | 
 | 568 | /* Define if you have times.  */ | 
 | 569 | /* #undef HAVE_TIMES */ | 
 | 570 |  | 
 | 571 | /* Define if you have uname.  */ | 
 | 572 | /* #undef HAVE_UNAME */ | 
 | 573 |  | 
 | 574 | /* Define if you have waitpid.  */ | 
 | 575 | /* #undef HAVE_WAITPID */ | 
 | 576 |  | 
| Martin v. Löwis | 9c36c29 | 2002-12-21 18:34:06 +0000 | [diff] [blame] | 577 | /* Define to 1 if you have the `wcscoll' function. */ | 
| Martin v. Löwis | a43190b | 2006-05-22 09:15:18 +0000 | [diff] [blame] | 578 | #ifndef MS_WINCE | 
| Martin v. Löwis | 9c36c29 | 2002-12-21 18:34:06 +0000 | [diff] [blame] | 579 | #define HAVE_WCSCOLL 1 | 
| Martin v. Löwis | a43190b | 2006-05-22 09:15:18 +0000 | [diff] [blame] | 580 | #endif | 
| Martin v. Löwis | 9c36c29 | 2002-12-21 18:34:06 +0000 | [diff] [blame] | 581 |  | 
| Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 582 | /* Define if you have the <dlfcn.h> header file.  */ | 
 | 583 | /* #undef HAVE_DLFCN_H */ | 
 | 584 |  | 
| Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 585 | /* Define to 1 if you have the <errno.h> header file. */ | 
 | 586 | #ifndef MS_WINCE | 
 | 587 | #define HAVE_ERRNO_H 1 | 
 | 588 | #endif | 
 | 589 |  | 
| Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 590 | /* Define if you have the <fcntl.h> header file.  */ | 
| Martin v. Löwis | a43190b | 2006-05-22 09:15:18 +0000 | [diff] [blame] | 591 | #ifndef MS_WINCE | 
| Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 592 | #define HAVE_FCNTL_H 1 | 
| Martin v. Löwis | a43190b | 2006-05-22 09:15:18 +0000 | [diff] [blame] | 593 | #endif | 
| Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 594 |  | 
| Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 595 | /* Define to 1 if you have the <process.h> header file. */ | 
 | 596 | #ifndef MS_WINCE | 
 | 597 | #define HAVE_PROCESS_H 1 | 
 | 598 | #endif | 
 | 599 |  | 
 | 600 | /* Define to 1 if you have the <signal.h> header file. */ | 
 | 601 | #ifndef MS_WINCE | 
 | 602 | #define HAVE_SIGNAL_H 1 | 
 | 603 | #endif | 
 | 604 |  | 
| Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 605 | /* Define if you have the <stdarg.h> prototypes.  */ | 
 | 606 | #define HAVE_STDARG_PROTOTYPES | 
 | 607 |  | 
| Martin v. Löwis | fe393f4 | 2004-07-27 15:57:24 +0000 | [diff] [blame] | 608 | /* Define if you have the <stddef.h> header file.  */ | 
 | 609 | #define HAVE_STDDEF_H 1 | 
 | 610 |  | 
| Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 611 | /* Define if you have the <sys/audioio.h> header file.  */ | 
 | 612 | /* #undef HAVE_SYS_AUDIOIO_H */ | 
 | 613 |  | 
 | 614 | /* Define if you have the <sys/param.h> header file.  */ | 
 | 615 | /* #define HAVE_SYS_PARAM_H 1 */ | 
 | 616 |  | 
 | 617 | /* Define if you have the <sys/select.h> header file.  */ | 
 | 618 | /* #define HAVE_SYS_SELECT_H 1 */ | 
 | 619 |  | 
| Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 620 | /* Define to 1 if you have the <sys/stat.h> header file.  */ | 
 | 621 | #ifndef MS_WINCE | 
 | 622 | #define HAVE_SYS_STAT_H 1 | 
 | 623 | #endif | 
 | 624 |  | 
| Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 625 | /* Define if you have the <sys/time.h> header file.  */ | 
 | 626 | /* #define HAVE_SYS_TIME_H 1 */ | 
 | 627 |  | 
 | 628 | /* Define if you have the <sys/times.h> header file.  */ | 
 | 629 | /* #define HAVE_SYS_TIMES_H 1 */ | 
 | 630 |  | 
| Martin v. Löwis | 0e8bd7e | 2006-06-10 12:23:46 +0000 | [diff] [blame] | 631 | /* Define to 1 if you have the <sys/types.h> header file.  */ | 
 | 632 | #ifndef MS_WINCE | 
 | 633 | #define HAVE_SYS_TYPES_H 1 | 
 | 634 | #endif | 
 | 635 |  | 
| Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 636 | /* Define if you have the <sys/un.h> header file.  */ | 
 | 637 | /* #define HAVE_SYS_UN_H 1 */ | 
 | 638 |  | 
 | 639 | /* Define if you have the <sys/utime.h> header file.  */ | 
| Tim Peters | 58e0a8c | 2001-05-14 22:32:33 +0000 | [diff] [blame] | 640 | /* #define HAVE_SYS_UTIME_H 1 */ | 
| Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 641 |  | 
 | 642 | /* Define if you have the <sys/utsname.h> header file.  */ | 
 | 643 | /* #define HAVE_SYS_UTSNAME_H 1 */ | 
 | 644 |  | 
 | 645 | /* Define if you have the <thread.h> header file.  */ | 
 | 646 | /* #undef HAVE_THREAD_H */ | 
 | 647 |  | 
 | 648 | /* Define if you have the <unistd.h> header file.  */ | 
 | 649 | /* #define HAVE_UNISTD_H 1 */ | 
 | 650 |  | 
 | 651 | /* Define if you have the <utime.h> header file.  */ | 
 | 652 | /* #define HAVE_UTIME_H 1 */ | 
 | 653 |  | 
| Martin v. Löwis | 9c36c29 | 2002-12-21 18:34:06 +0000 | [diff] [blame] | 654 | /* Define if the compiler provides a wchar.h header file. */ | 
 | 655 | #define HAVE_WCHAR_H 1 | 
 | 656 |  | 
| Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 657 | /* Define if you have the dl library (-ldl).  */ | 
 | 658 | /* #undef HAVE_LIBDL */ | 
 | 659 |  | 
 | 660 | /* Define if you have the mpc library (-lmpc).  */ | 
 | 661 | /* #undef HAVE_LIBMPC */ | 
 | 662 |  | 
 | 663 | /* Define if you have the nsl library (-lnsl).  */ | 
 | 664 | #define HAVE_LIBNSL 1 | 
 | 665 |  | 
 | 666 | /* Define if you have the seq library (-lseq).  */ | 
 | 667 | /* #undef HAVE_LIBSEQ */ | 
 | 668 |  | 
 | 669 | /* Define if you have the socket library (-lsocket).  */ | 
 | 670 | #define HAVE_LIBSOCKET 1 | 
 | 671 |  | 
 | 672 | /* Define if you have the sun library (-lsun).  */ | 
 | 673 | /* #undef HAVE_LIBSUN */ | 
 | 674 |  | 
 | 675 | /* Define if you have the termcap library (-ltermcap).  */ | 
 | 676 | /* #undef HAVE_LIBTERMCAP */ | 
 | 677 |  | 
 | 678 | /* Define if you have the termlib library (-ltermlib).  */ | 
 | 679 | /* #undef HAVE_LIBTERMLIB */ | 
 | 680 |  | 
 | 681 | /* Define if you have the thread library (-lthread).  */ | 
 | 682 | /* #undef HAVE_LIBTHREAD */ | 
| Martin v. Löwis | f84d1b9 | 2006-02-11 09:27:05 +0000 | [diff] [blame] | 683 |  | 
 | 684 | /* WinSock does not use a bitmask in select, and uses | 
 | 685 |    socket handles greater than FD_SETSIZE */ | 
 | 686 | #define Py_SOCKET_FD_CAN_BE_GE_FD_SETSIZE | 
 | 687 |  | 
| Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 688 | #endif /* !Py_CONFIG_H */ |