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 | |
| 4 | /* config.h. NOT Generated automatically by configure. |
| 5 | |
| 6 | This is a manually maintained version used for the Watcom, |
| 7 | Borland and and Microsoft Visual C++ compilers. It is a |
| 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 |
| 15 | MS_WIN32 - Code specific to the MS Win32 (and Win64) API |
Guido van Rossum | 950a126 | 1996-07-30 17:38:17 +0000 | [diff] [blame] | 16 | MS_WIN16 - Code specific to the old 16 bit Windows API. |
| 17 | MS_WINDOWS - Code specific to Windows, but all versions. |
| 18 | MS_COREDLL - Code if the Python core is built as a DLL. |
| 19 | |
| 20 | Note that the old defines "NT" and "WIN32" are still supported, but |
| 21 | will soon be dropped. |
| 22 | |
| 23 | Also note that neither "_M_IX86" or "_MSC_VER" should be used for |
| 24 | any purpose other than "Windows Intel x86 specific" and "Microsoft |
| 25 | compiler specific". Therefore, these should be very rare. |
| 26 | |
Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 27 | */ |
| 28 | |
Fred Drake | 91c4e2b | 2000-06-19 13:41:54 +0000 | [diff] [blame] | 29 | |
Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 30 | /* |
| 31 | Some systems require special declarations for data items imported |
| 32 | or exported from dynamic link libraries. Note that the definition |
| 33 | of DL_IMPORT covers both cases. Define USE_DL_IMPORT for the client |
| 34 | of a DLL. Define USE_DL_EXPORT when making a DLL. |
| 35 | */ |
| 36 | |
| 37 | #include <io.h> |
| 38 | #define HAVE_LIMITS_H |
| 39 | #define HAVE_HYPOT |
| 40 | #define DONT_HAVE_SIG_ALARM |
| 41 | #define DONT_HAVE_SIG_PAUSE |
Guido van Rossum | 1bc716f | 1996-06-28 19:12:06 +0000 | [diff] [blame] | 42 | #define LONG_BIT 32 |
Guido van Rossum | 950a126 | 1996-07-30 17:38:17 +0000 | [diff] [blame] | 43 | #define PREFIX "" |
| 44 | #define EXEC_PREFIX "" |
Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 45 | |
| 46 | /* Microsoft C defines _MSC_VER */ |
Guido van Rossum | c66ae96 | 2000-05-08 14:14:48 +0000 | [diff] [blame] | 47 | #ifdef _MSC_VER |
| 48 | |
| 49 | /* MSVC defines _WINxx to differentiate the windows platform types |
| 50 | |
| 51 | Note that for compatibility reasons _WIN32 is defined on Win32 |
| 52 | *and* on Win64. For the same reasons, in Python, MS_WIN32 is |
| 53 | defined on Win32 *and* Win64. Win32 only code must therefore be |
| 54 | guarded as follows: |
| 55 | #if defined(MS_WIN32) && !defined(MS_WIN64) |
| 56 | */ |
| 57 | #ifdef _WIN64 |
| 58 | #define MS_WIN64 |
| 59 | #endif |
| 60 | #ifdef _WIN32 |
| 61 | #define NT /* NT is obsolete - please use MS_WIN32 instead */ |
| 62 | #define MS_WIN32 |
| 63 | #endif |
| 64 | #ifdef _WIN16 |
| 65 | #define MS_WIN16 |
| 66 | #endif |
| 67 | #define MS_WINDOWS |
| 68 | |
| 69 | /* set the COMPILER */ |
| 70 | #ifdef MS_WIN64 |
| 71 | #ifdef _M_IX86 |
| 72 | #define COMPILER "[MSC 64 bit (Intel)]" |
| 73 | #elif defined(_M_ALPHA) |
| 74 | #define COMPILER "[MSC 64 bit (Alpha)]" |
| 75 | #else |
| 76 | #define COMPILER "[MSC 64 bit (Unknown)]" |
| 77 | #endif |
| 78 | #endif /* MS_WIN64 */ |
| 79 | |
| 80 | #if defined(MS_WIN32) && !defined(MS_WIN64) |
| 81 | #ifdef _M_IX86 |
| 82 | #define COMPILER "[MSC 32 bit (Intel)]" |
| 83 | #elif defined(_M_ALPHA) |
| 84 | #define COMPILER "[MSC 32 bit (Alpha)]" |
| 85 | #else |
| 86 | #define COMPILER "[MSC (Unknown)]" |
| 87 | #endif |
| 88 | #endif /* MS_WIN32 && !MS_WIN64 */ |
| 89 | |
| 90 | #endif /* _MSC_VER */ |
Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 91 | |
| 92 | #if defined(_MSC_VER) && _MSC_VER > 850 |
Guido van Rossum | 1bc716f | 1996-06-28 19:12:06 +0000 | [diff] [blame] | 93 | /* Start of defines for MS_WIN32 using VC++ 2.0 and up */ |
Guido van Rossum | 950a126 | 1996-07-30 17:38:17 +0000 | [diff] [blame] | 94 | |
Guido van Rossum | eaf9b6c | 1996-08-22 00:06:59 +0000 | [diff] [blame] | 95 | /* For NT the Python core is in a DLL by default. Test the |
| 96 | standard macro MS_COREDLL to find out. If you have an exception |
| 97 | you must define MS_NO_COREDLL (do not test this macro) */ |
| 98 | #ifndef MS_NO_COREDLL |
| 99 | #define MS_COREDLL /* Python core is in a DLL */ |
Guido van Rossum | 950a126 | 1996-07-30 17:38:17 +0000 | [diff] [blame] | 100 | #ifndef USE_DL_EXPORT |
| 101 | #define USE_DL_IMPORT |
| 102 | #endif /* !USE_DL_EXPORT */ |
Guido van Rossum | eaf9b6c | 1996-08-22 00:06:59 +0000 | [diff] [blame] | 103 | #endif /* !MS_NO_COREDLL */ |
Guido van Rossum | 950a126 | 1996-07-30 17:38:17 +0000 | [diff] [blame] | 104 | |
Guido van Rossum | 52f4915 | 1998-04-11 02:31:30 +0000 | [diff] [blame] | 105 | #define PYTHONPATH ".\\DLLs;.\\lib;.\\lib\\plat-win;.\\lib\\lib-tk" |
Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 106 | typedef int pid_t; |
Guido van Rossum | 1bc716f | 1996-06-28 19:12:06 +0000 | [diff] [blame] | 107 | #define WORD_BIT 32 |
Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 108 | #pragma warning(disable:4113) |
| 109 | #define hypot _hypot |
| 110 | #include <stdio.h> |
| 111 | #define HAVE_CLOCK |
| 112 | #define HAVE_STRFTIME |
Guido van Rossum | 9b499d2 | 1998-08-12 02:10:05 +0000 | [diff] [blame] | 113 | #define HAVE_STRERROR |
Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 114 | #define NT_THREADS |
| 115 | #define WITH_THREAD |
| 116 | #ifndef NETSCAPE_PI |
| 117 | #define USE_SOCKET |
Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 118 | #endif |
| 119 | #ifdef USE_DL_IMPORT |
| 120 | #define DL_IMPORT(RTYPE) __declspec(dllimport) RTYPE |
| 121 | #endif |
| 122 | #ifdef USE_DL_EXPORT |
| 123 | #define DL_IMPORT(RTYPE) __declspec(dllexport) RTYPE |
Guido van Rossum | 9df827f | 1998-12-10 16:50:49 +0000 | [diff] [blame] | 124 | #define DL_EXPORT(RTYPE) __declspec(dllexport) RTYPE |
Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 125 | #endif |
Guido van Rossum | 950a126 | 1996-07-30 17:38:17 +0000 | [diff] [blame] | 126 | |
Guido van Rossum | 3293b07 | 1998-08-25 16:07:15 +0000 | [diff] [blame] | 127 | #define HAVE_LONG_LONG 1 |
| 128 | #define LONG_LONG __int64 |
Guido van Rossum | 950a126 | 1996-07-30 17:38:17 +0000 | [diff] [blame] | 129 | #endif /* _MSC_VER && > 850 */ |
Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 130 | |
Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 131 | /* The Borland compiler defines __BORLANDC__ */ |
Guido van Rossum | cf6c0ea | 1996-10-21 14:52:24 +0000 | [diff] [blame] | 132 | /* 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] | 133 | #ifdef __BORLANDC__ |
| 134 | #define COMPILER "[Borland]" |
Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 135 | #define HAVE_CLOCK |
| 136 | #define HAVE_STRFTIME |
Mark Hammond | c756bdb | 2000-08-15 22:33:59 +0000 | [diff] [blame] | 137 | |
| 138 | #ifdef _WIN32 |
| 139 | |
| 140 | /* tested with BCC 5.5 (__BORLANDC__ >= 0x0550) |
| 141 | */ |
| 142 | #define NT /* NT is obsolete - please use MS_WIN32 instead */ |
| 143 | #define MS_WIN32 |
| 144 | #define MS_WINDOWS |
| 145 | |
| 146 | /* For NT the Python core is in a DLL by default. Test the |
| 147 | standard macro MS_COREDLL to find out. If you have an exception |
| 148 | you must define MS_NO_COREDLL (do not test this macro) */ |
| 149 | #ifndef MS_NO_COREDLL |
| 150 | #define MS_COREDLL /* Python core is in a DLL */ |
| 151 | #ifndef USE_DL_EXPORT |
| 152 | #define USE_DL_IMPORT |
| 153 | #endif /* !USE_DL_EXPORT */ |
| 154 | #endif /* !MS_NO_COREDLL */ |
| 155 | |
| 156 | #define PYTHONPATH ".\\DLLs;.\\lib;.\\lib\\plat-win;.\\lib\\lib-tk" |
| 157 | typedef int pid_t; |
| 158 | #define WORD_BIT 32 |
| 159 | #include <stdio.h> |
| 160 | #define HAVE_STRERROR |
| 161 | #define NT_THREADS |
| 162 | #define WITH_THREAD |
| 163 | #ifndef NETSCAPE_PI |
| 164 | #define USE_SOCKET |
| 165 | #endif |
| 166 | /* BCC55 seems to understand __declspec(dllimport), it is used in its |
| 167 | own header files (winnt.h, ...) */ |
| 168 | #ifdef USE_DL_IMPORT |
| 169 | #define DL_IMPORT(RTYPE) __declspec(dllimport) RTYPE |
| 170 | #endif |
| 171 | #ifdef USE_DL_EXPORT |
| 172 | #define DL_IMPORT(RTYPE) __declspec(dllexport) RTYPE |
| 173 | #define DL_EXPORT(RTYPE) __declspec(dllexport) RTYPE |
| 174 | #endif |
| 175 | |
| 176 | #define HAVE_LONG_LONG 1 |
| 177 | #define LONG_LONG __int64 |
| 178 | |
| 179 | #else /* !_WIN32 */ |
Guido van Rossum | 6042741 | 2000-11-13 17:29:30 +0000 | [diff] [blame] | 180 | #error "Only Win32 and later are supported" |
Mark Hammond | c756bdb | 2000-08-15 22:33:59 +0000 | [diff] [blame] | 181 | #endif /* !_WIN32 */ |
| 182 | |
Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 183 | #endif /* BORLANDC */ |
| 184 | |
Mark Hammond | c756bdb | 2000-08-15 22:33:59 +0000 | [diff] [blame] | 185 | /* egcs/gnu-win32 defines __GNUC__ and _WIN32 */ |
| 186 | #if defined(__GNUC__) && defined(_WIN32) |
| 187 | /* XXX These defines are likely incomplete, but should be easy to fix. |
| 188 | They should be complete enough to build extension modules. */ |
| 189 | /* Suggested by Rene Liebscher <R.Liebscher@gmx.de> to avoid a GCC 2.91.* |
| 190 | bug that requires structure imports. More recent versions of the |
| 191 | compiler don't exhibit this bug. |
| 192 | */ |
| 193 | #if (__GNUC__==2) && (__GNUC_MINOR__<=91) |
| 194 | #warning "Please use an up-to-date version of gcc! (>2.91 recommended)" |
| 195 | #endif |
| 196 | |
| 197 | #define NT /* NT is obsolete - please use MS_WIN32 instead */ |
| 198 | #define MS_WIN32 |
| 199 | #define MS_WINDOWS |
| 200 | |
| 201 | /* For NT the Python core is in a DLL by default. Test the |
| 202 | standard macro MS_COREDLL to find out. If you have an exception |
| 203 | you must define MS_NO_COREDLL (do not test this macro) */ |
| 204 | #ifndef MS_NO_COREDLL |
| 205 | #define MS_COREDLL /* Python core is in a DLL */ |
| 206 | #ifndef USE_DL_EXPORT |
| 207 | #define USE_DL_IMPORT |
| 208 | #endif /* !USE_DL_EXPORT */ |
| 209 | #endif /* !MS_NO_COREDLL */ |
| 210 | |
| 211 | #define COMPILER "[gcc]" |
| 212 | #define PYTHONPATH ".\\DLLs;.\\lib;.\\lib\\plat-win;.\\lib\\lib-tk" |
| 213 | #define WORD_BIT 32 |
| 214 | #define hypot _hypot |
| 215 | #include <stdio.h> |
| 216 | #define HAVE_CLOCK |
| 217 | #define HAVE_STRFTIME |
| 218 | #define HAVE_STRERROR |
| 219 | #define NT_THREADS |
| 220 | #define WITH_THREAD |
| 221 | #ifndef NETSCAPE_PI |
| 222 | #define USE_SOCKET |
| 223 | #endif |
| 224 | #ifdef USE_DL_IMPORT |
| 225 | #define DL_IMPORT(RTYPE) __declspec(dllimport) RTYPE |
| 226 | #endif |
| 227 | #ifdef USE_DL_EXPORT |
| 228 | #define DL_IMPORT(RTYPE) __declspec(dllexport) RTYPE |
| 229 | #define DL_EXPORT(RTYPE) __declspec(dllexport) RTYPE |
| 230 | #endif |
| 231 | |
| 232 | #define HAVE_LONG_LONG 1 |
| 233 | #define LONG_LONG long long |
| 234 | #endif /* GNUC */ |
| 235 | |
| 236 | /* lcc-win32 defines __LCC__ */ |
| 237 | |
| 238 | #if defined(__LCC__) |
| 239 | /* XXX These defines are likely incomplete, but should be easy to fix. |
| 240 | They should be complete enough to build extension modules. */ |
| 241 | |
| 242 | #define NT /* NT is obsolete - please use MS_WIN32 instead */ |
| 243 | #define MS_WIN32 |
| 244 | #define MS_WINDOWS |
| 245 | |
| 246 | /* For NT the Python core is in a DLL by default. Test the |
| 247 | standard macro MS_COREDLL to find out. If you have an exception |
| 248 | you must define MS_NO_COREDLL (do not test this macro) */ |
| 249 | #ifndef MS_NO_COREDLL |
| 250 | #define MS_COREDLL /* Python core is in a DLL */ |
| 251 | #ifndef USE_DL_EXPORT |
| 252 | #define USE_DL_IMPORT |
| 253 | #endif /* !USE_DL_EXPORT */ |
| 254 | #endif /* !MS_NO_COREDLL */ |
| 255 | |
| 256 | #define COMPILER "[lcc-win32]" |
| 257 | #define PYTHONPATH ".\\DLLs;.\\lib;.\\lib\\plat-win;.\\lib\\lib-tk" |
| 258 | typedef int pid_t; |
| 259 | #define WORD_BIT 32 |
| 260 | #include <stdio.h> |
| 261 | #define HAVE_CLOCK |
| 262 | #define HAVE_STRFTIME |
| 263 | #define HAVE_STRERROR |
| 264 | #define NT_THREADS |
| 265 | #define WITH_THREAD |
| 266 | #ifndef NETSCAPE_PI |
| 267 | #define USE_SOCKET |
| 268 | #endif |
| 269 | #ifdef USE_DL_IMPORT |
| 270 | #define DL_IMPORT(RTYPE) __declspec(dllimport) RTYPE |
| 271 | #endif |
| 272 | #ifdef USE_DL_EXPORT |
| 273 | #define DL_IMPORT(RTYPE) __declspec(dllexport) RTYPE |
| 274 | #define DL_EXPORT(RTYPE) __declspec(dllexport) RTYPE |
| 275 | #endif |
| 276 | |
| 277 | #define HAVE_LONG_LONG 1 |
| 278 | #define LONG_LONG __int64 |
| 279 | #endif /* LCC */ |
| 280 | |
Guido van Rossum | 950a126 | 1996-07-30 17:38:17 +0000 | [diff] [blame] | 281 | /* End of compilers - finish up */ |
| 282 | |
Fredrik Lundh | 6947d0b | 2000-08-07 20:16:28 +0000 | [diff] [blame] | 283 | /* define some ANSI types that are not defined in earlier Win headers */ |
Guido van Rossum | 361b583 | 2000-06-30 22:17:53 +0000 | [diff] [blame] | 284 | #if _MSC_VER >= 1200 /* This file only exists in VC 6.0 or higher */ |
Fred Drake | a3f6e91 | 2000-06-29 20:44:47 +0000 | [diff] [blame] | 285 | #include <basetsd.h> |
Guido van Rossum | 361b583 | 2000-06-30 22:17:53 +0000 | [diff] [blame] | 286 | #endif |
Fred Drake | a3f6e91 | 2000-06-29 20:44:47 +0000 | [diff] [blame] | 287 | #if defined(MS_WINDOWS) && !defined(MS_WIN64) |
| 288 | typedef long intptr_t; |
Fredrik Lundh | 6947d0b | 2000-08-07 20:16:28 +0000 | [diff] [blame] | 289 | typedef unsigned long uintptr_t; |
Fred Drake | a3f6e91 | 2000-06-29 20:44:47 +0000 | [diff] [blame] | 290 | #endif |
| 291 | |
Guido van Rossum | c66ae96 | 2000-05-08 14:14:48 +0000 | [diff] [blame] | 292 | #if defined(MS_WIN64) |
Guido van Rossum | da5cc82 | 2000-05-10 13:25:32 +0000 | [diff] [blame] | 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 */ |
Fred Drake | a3f6e91 | 2000-06-29 20:44:47 +0000 | [diff] [blame] | 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 | /* configure.in defines HAVE_LARGEFILE_SUPPORT iff HAVE_LONG_LONG, |
| 303 | sizeof(off_t) > sizeof(long), and sizeof(LONG_LONG) >= sizeof(off_t). |
| 304 | On Win64 the second condition is not true, but if fpos_t replaces off_t |
| 305 | then this is true. The uses of HAVE_LARGEFILE_SUPPORT imply that Win64 |
| 306 | should define this. */ |
| 307 | # define HAVE_LARGEFILE_SUPPORT |
Guido van Rossum | c66ae96 | 2000-05-08 14:14:48 +0000 | [diff] [blame] | 308 | #elif defined(MS_WIN32) |
Fred Drake | a3f6e91 | 2000-06-29 20:44:47 +0000 | [diff] [blame] | 309 | # define PLATFORM "win32" |
| 310 | # ifdef _M_ALPHA |
| 311 | # define SIZEOF_VOID_P 8 |
| 312 | # define SIZEOF_TIME_T 8 |
| 313 | # else |
| 314 | # define SIZEOF_VOID_P 4 |
| 315 | # define SIZEOF_TIME_T 4 |
| 316 | # define SIZEOF_OFF_T 4 |
| 317 | # define SIZEOF_FPOS_T 8 |
| 318 | # define SIZEOF_HKEY 4 |
| 319 | # endif |
Guido van Rossum | c66ae96 | 2000-05-08 14:14:48 +0000 | [diff] [blame] | 320 | #endif |
| 321 | |
Guido van Rossum | 950a126 | 1996-07-30 17:38:17 +0000 | [diff] [blame] | 322 | |
Guido van Rossum | f4aeb84 | 1998-02-19 20:59:23 +0000 | [diff] [blame] | 323 | #ifdef MS_WIN32 |
Guido van Rossum | d3ab101 | 1998-05-29 02:53:29 +0000 | [diff] [blame] | 324 | |
Greg Ward | ff7b562 | 2000-08-05 00:58:14 +0000 | [diff] [blame] | 325 | #if !defined(USE_DL_EXPORT) && defined(_MSC_VER) |
| 326 | /* So nobody using MSVC needs to specify the .lib in their Makefile any |
| 327 | more (other compilers will still need to do so, but that's taken care |
| 328 | of by the Distutils, so it's not a problem). */ |
Guido van Rossum | 446f033 | 1998-08-07 15:32:00 +0000 | [diff] [blame] | 329 | #ifdef _DEBUG |
Tim Peters | 97c9640 | 2001-01-17 23:23:13 +0000 | [diff] [blame] | 330 | #pragma comment(lib,"python21_d.lib") |
Guido van Rossum | 446f033 | 1998-08-07 15:32:00 +0000 | [diff] [blame] | 331 | #else |
Tim Peters | 97c9640 | 2001-01-17 23:23:13 +0000 | [diff] [blame] | 332 | #pragma comment(lib,"python21.lib") |
Guido van Rossum | 446f033 | 1998-08-07 15:32:00 +0000 | [diff] [blame] | 333 | #endif |
Guido van Rossum | 1a87be1 | 1998-08-08 18:25:43 +0000 | [diff] [blame] | 334 | #endif /* USE_DL_EXPORT */ |
Guido van Rossum | 446f033 | 1998-08-07 15:32:00 +0000 | [diff] [blame] | 335 | |
Guido van Rossum | bffd683 | 2000-01-20 22:32:56 +0000 | [diff] [blame] | 336 | #ifdef _DEBUG |
| 337 | #define Py_DEBUG |
| 338 | #endif |
| 339 | |
Guido van Rossum | d3ab101 | 1998-05-29 02:53:29 +0000 | [diff] [blame] | 340 | #define SIZEOF_INT 4 |
| 341 | #define SIZEOF_LONG 4 |
Guido van Rossum | b00d252 | 1998-09-17 13:19:36 +0000 | [diff] [blame] | 342 | #define SIZEOF_LONG_LONG 8 |
Guido van Rossum | d3ab101 | 1998-05-29 02:53:29 +0000 | [diff] [blame] | 343 | |
Guido van Rossum | f4aeb84 | 1998-02-19 20:59:23 +0000 | [diff] [blame] | 344 | #endif |
| 345 | |
Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 346 | /* Fairly standard from here! */ |
| 347 | |
| 348 | /* Define if on AIX 3. |
| 349 | System headers sometimes define this. |
| 350 | We just want to avoid a redefinition error message. */ |
| 351 | #ifndef _ALL_SOURCE |
| 352 | /* #undef _ALL_SOURCE */ |
| 353 | #endif |
| 354 | |
| 355 | /* Define to empty if the keyword does not work. */ |
| 356 | /* #define const */ |
| 357 | |
| 358 | /* Define if you have dirent.h. */ |
| 359 | /* #define DIRENT 1 */ |
| 360 | |
| 361 | /* Define to the type of elements in the array set by `getgroups'. |
| 362 | Usually this is either `int' or `gid_t'. */ |
| 363 | /* #undef GETGROUPS_T */ |
| 364 | |
| 365 | /* Define to `int' if <sys/types.h> doesn't define. */ |
| 366 | /* #undef gid_t */ |
| 367 | |
| 368 | /* Define if your struct tm has tm_zone. */ |
| 369 | /* #undef HAVE_TM_ZONE */ |
| 370 | |
| 371 | /* Define if you don't have tm_zone but do have the external array |
| 372 | tzname. */ |
| 373 | #define HAVE_TZNAME |
| 374 | |
| 375 | /* Define if on MINIX. */ |
| 376 | /* #undef _MINIX */ |
| 377 | |
| 378 | /* Define to `int' if <sys/types.h> doesn't define. */ |
| 379 | /* #undef mode_t */ |
| 380 | |
| 381 | /* Define if you don't have dirent.h, but have ndir.h. */ |
| 382 | /* #undef NDIR */ |
| 383 | |
| 384 | /* Define to `long' if <sys/types.h> doesn't define. */ |
| 385 | /* #undef off_t */ |
| 386 | |
| 387 | /* Define to `int' if <sys/types.h> doesn't define. */ |
| 388 | /* #undef pid_t */ |
| 389 | |
| 390 | /* Define if the system does not provide POSIX.1 features except |
| 391 | with this defined. */ |
| 392 | /* #undef _POSIX_1_SOURCE */ |
| 393 | |
| 394 | /* Define if you need to in order for stat and other things to work. */ |
| 395 | /* #undef _POSIX_SOURCE */ |
| 396 | |
| 397 | /* Define as the return type of signal handlers (int or void). */ |
| 398 | #define RETSIGTYPE void |
| 399 | |
| 400 | /* Define to `unsigned' if <sys/types.h> doesn't define. */ |
| 401 | /* #undef size_t */ |
| 402 | |
Guido van Rossum | db575db | 2000-04-24 15:37:34 +0000 | [diff] [blame] | 403 | /* Define to `int' if <sys/types.h> doesn't define. */ |
| 404 | #define socklen_t int |
| 405 | |
Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 406 | /* Define if you have the ANSI C header files. */ |
| 407 | #define STDC_HEADERS 1 |
| 408 | |
| 409 | /* Define if you don't have dirent.h, but have sys/dir.h. */ |
| 410 | /* #undef SYSDIR */ |
| 411 | |
| 412 | /* Define if you don't have dirent.h, but have sys/ndir.h. */ |
| 413 | /* #undef SYSNDIR */ |
| 414 | |
| 415 | /* Define if you can safely include both <sys/time.h> and <time.h>. */ |
| 416 | /* #undef TIME_WITH_SYS_TIME */ |
| 417 | |
| 418 | /* Define if your <sys/time.h> declares struct tm. */ |
| 419 | /* #define TM_IN_SYS_TIME 1 */ |
| 420 | |
| 421 | /* Define to `int' if <sys/types.h> doesn't define. */ |
| 422 | /* #undef uid_t */ |
| 423 | |
| 424 | /* Define if the closedir function returns void instead of int. */ |
| 425 | /* #undef VOID_CLOSEDIR */ |
| 426 | |
| 427 | /* Define if your <unistd.h> contains bad prototypes for exec*() |
| 428 | (as it does on SGI IRIX 4.x) */ |
| 429 | /* #undef BAD_EXEC_PROTOTYPES */ |
| 430 | |
| 431 | /* Define if your compiler botches static forward declarations |
| 432 | (as it does on SCI ODT 3.0) */ |
| 433 | #define BAD_STATIC_FORWARD 1 |
| 434 | |
| 435 | /* Define if getpgrp() must be called as getpgrp(0) |
| 436 | and (consequently) setpgrp() as setpgrp(0, 0). */ |
| 437 | /* #undef GETPGRP_HAVE_ARGS */ |
| 438 | |
| 439 | /* Define this if your time.h defines altzone */ |
| 440 | /* #define HAVE_ALTZONE */ |
| 441 | |
Guido van Rossum | eaf9b6c | 1996-08-22 00:06:59 +0000 | [diff] [blame] | 442 | /* Define if you have the putenv function. */ |
| 443 | #ifdef MS_WIN32 |
| 444 | /* Does this exist on Win16? */ |
| 445 | #define HAVE_PUTENV |
| 446 | #endif |
| 447 | |
Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 448 | /* Define if your compiler supports function prototypes */ |
| 449 | #define HAVE_PROTOTYPES |
| 450 | |
| 451 | /* Define if you can safely include both <sys/select.h> and <sys/time.h> |
| 452 | (which you can't on SCO ODT 3.0). */ |
| 453 | /* #undef SYS_SELECT_WITH_SYS_TIME */ |
| 454 | |
| 455 | /* Define if you want to use SGI (IRIX 4) dynamic linking. |
| 456 | This requires the "dl" library by Jack Jansen, |
| 457 | ftp://ftp.cwi.nl/pub/dynload/dl-1.6.tar.Z. |
| 458 | Don't bother on IRIX 5, it already has dynamic linking using SunOS |
Guido van Rossum | 950a126 | 1996-07-30 17:38:17 +0000 | [diff] [blame] | 459 | style shared libraries */ |
Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 460 | /* #undef WITH_SGI_DL */ |
| 461 | |
| 462 | /* Define if you want to emulate SGI (IRIX 4) dynamic linking. |
| 463 | This is rumoured to work on VAX (Ultrix), Sun3 (SunOS 3.4), |
| 464 | Sequent Symmetry (Dynix), and Atari ST. |
| 465 | This requires the "dl-dld" library, |
| 466 | ftp://ftp.cwi.nl/pub/dynload/dl-dld-1.1.tar.Z, |
| 467 | as well as the "GNU dld" library, |
| 468 | ftp://ftp.cwi.nl/pub/dynload/dld-3.2.3.tar.Z. |
| 469 | Don't bother on SunOS 4 or 5, they already have dynamic linking using |
Guido van Rossum | 950a126 | 1996-07-30 17:38:17 +0000 | [diff] [blame] | 470 | shared libraries */ |
Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 471 | /* #undef WITH_DL_DLD */ |
| 472 | |
| 473 | /* Define if you want to compile in rudimentary thread support */ |
| 474 | /* #undef WITH_THREAD */ |
| 475 | |
| 476 | /* Define if you want to use the GNU readline library */ |
| 477 | /* #define WITH_READLINE 1 */ |
| 478 | |
Jeremy Hylton | c5007aa | 2000-06-30 05:02:53 +0000 | [diff] [blame] | 479 | /* Define if you want cycle garbage collection */ |
Guido van Rossum | 4767402 | 2000-06-30 20:31:50 +0000 | [diff] [blame] | 480 | #define WITH_CYCLE_GC 1 |
Jeremy Hylton | c5007aa | 2000-06-30 05:02:53 +0000 | [diff] [blame] | 481 | |
Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 482 | /* Define if you have clock. */ |
| 483 | /* #define HAVE_CLOCK */ |
| 484 | |
Guido van Rossum | 9f9fa6d | 1999-12-20 22:57:41 +0000 | [diff] [blame] | 485 | /* Define when any dynamic module loading is enabled */ |
| 486 | #define HAVE_DYNAMIC_LOADING |
| 487 | |
Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 488 | /* Define if you have ftime. */ |
| 489 | #define HAVE_FTIME |
| 490 | |
| 491 | /* Define if you have getpeername. */ |
Guido van Rossum | c339753 | 1997-05-06 15:58:18 +0000 | [diff] [blame] | 492 | #define HAVE_GETPEERNAME |
Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 493 | |
| 494 | /* Define if you have getpgrp. */ |
| 495 | /* #undef HAVE_GETPGRP */ |
| 496 | |
| 497 | /* Define if you have getpid. */ |
Guido van Rossum | c339753 | 1997-05-06 15:58:18 +0000 | [diff] [blame] | 498 | #define HAVE_GETPID |
Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 499 | |
| 500 | /* Define if you have gettimeofday. */ |
| 501 | /* #undef HAVE_GETTIMEOFDAY */ |
| 502 | |
| 503 | /* Define if you have getwd. */ |
| 504 | /* #undef HAVE_GETWD */ |
| 505 | |
| 506 | /* Define if you have lstat. */ |
| 507 | /* #undef HAVE_LSTAT */ |
| 508 | |
Guido van Rossum | 63096d4 | 1998-04-10 21:28:49 +0000 | [diff] [blame] | 509 | /* Define if you have the mktime function. */ |
| 510 | #define HAVE_MKTIME |
| 511 | |
Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 512 | /* Define if you have nice. */ |
| 513 | /* #undef HAVE_NICE */ |
| 514 | |
| 515 | /* Define if you have readlink. */ |
| 516 | /* #undef HAVE_READLINK */ |
| 517 | |
| 518 | /* Define if you have select. */ |
| 519 | /* #undef HAVE_SELECT */ |
| 520 | |
| 521 | /* Define if you have setpgid. */ |
| 522 | /* #undef HAVE_SETPGID */ |
| 523 | |
| 524 | /* Define if you have setpgrp. */ |
| 525 | /* #undef HAVE_SETPGRP */ |
| 526 | |
| 527 | /* Define if you have setsid. */ |
| 528 | /* #undef HAVE_SETSID */ |
| 529 | |
Guido van Rossum | c339753 | 1997-05-06 15:58:18 +0000 | [diff] [blame] | 530 | /* Define if you have setvbuf. */ |
| 531 | #define HAVE_SETVBUF |
| 532 | |
Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 533 | /* Define if you have siginterrupt. */ |
| 534 | /* #undef HAVE_SIGINTERRUPT */ |
| 535 | |
| 536 | /* Define if you have symlink. */ |
| 537 | /* #undef HAVE_SYMLINK */ |
| 538 | |
| 539 | /* Define if you have tcgetpgrp. */ |
| 540 | /* #undef HAVE_TCGETPGRP */ |
| 541 | |
| 542 | /* Define if you have tcsetpgrp. */ |
| 543 | /* #undef HAVE_TCSETPGRP */ |
| 544 | |
| 545 | /* Define if you have times. */ |
| 546 | /* #undef HAVE_TIMES */ |
| 547 | |
| 548 | /* Define if you have uname. */ |
| 549 | /* #undef HAVE_UNAME */ |
| 550 | |
| 551 | /* Define if you have waitpid. */ |
| 552 | /* #undef HAVE_WAITPID */ |
| 553 | |
| 554 | /* Define if you have the <dlfcn.h> header file. */ |
| 555 | /* #undef HAVE_DLFCN_H */ |
| 556 | |
| 557 | /* Define if you have the <fcntl.h> header file. */ |
| 558 | #define HAVE_FCNTL_H 1 |
| 559 | |
| 560 | /* Define if you have the <signal.h> header file. */ |
| 561 | #define HAVE_SIGNAL_H 1 |
| 562 | |
| 563 | /* Define if you have the <stdarg.h> header file. */ |
| 564 | #define HAVE_STDARG_H 1 |
| 565 | |
| 566 | /* Define if you have the <stdarg.h> prototypes. */ |
| 567 | #define HAVE_STDARG_PROTOTYPES |
| 568 | |
Guido van Rossum | 4da55f0 | 1998-09-23 13:35:45 +0000 | [diff] [blame] | 569 | /* Define if you have the <stddef.h> header file. */ |
| 570 | #define HAVE_STDDEF_H 1 |
| 571 | |
Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 572 | /* Define if you have the <stdlib.h> header file. */ |
| 573 | #define HAVE_STDLIB_H 1 |
| 574 | |
| 575 | /* Define if you have the <sys/audioio.h> header file. */ |
| 576 | /* #undef HAVE_SYS_AUDIOIO_H */ |
| 577 | |
| 578 | /* Define if you have the <sys/param.h> header file. */ |
| 579 | /* #define HAVE_SYS_PARAM_H 1 */ |
| 580 | |
| 581 | /* Define if you have the <sys/select.h> header file. */ |
| 582 | /* #define HAVE_SYS_SELECT_H 1 */ |
| 583 | |
| 584 | /* Define if you have the <sys/time.h> header file. */ |
| 585 | /* #define HAVE_SYS_TIME_H 1 */ |
| 586 | |
| 587 | /* Define if you have the <sys/times.h> header file. */ |
| 588 | /* #define HAVE_SYS_TIMES_H 1 */ |
| 589 | |
| 590 | /* Define if you have the <sys/un.h> header file. */ |
| 591 | /* #define HAVE_SYS_UN_H 1 */ |
| 592 | |
| 593 | /* Define if you have the <sys/utime.h> header file. */ |
| 594 | #define HAVE_SYS_UTIME_H 1 |
| 595 | |
| 596 | /* Define if you have the <sys/utsname.h> header file. */ |
| 597 | /* #define HAVE_SYS_UTSNAME_H 1 */ |
| 598 | |
| 599 | /* Define if you have the <thread.h> header file. */ |
| 600 | /* #undef HAVE_THREAD_H */ |
| 601 | |
| 602 | /* Define if you have the <unistd.h> header file. */ |
| 603 | /* #define HAVE_UNISTD_H 1 */ |
| 604 | |
| 605 | /* Define if you have the <utime.h> header file. */ |
| 606 | /* #define HAVE_UTIME_H 1 */ |
| 607 | |
| 608 | /* Define if you have the dl library (-ldl). */ |
| 609 | /* #undef HAVE_LIBDL */ |
| 610 | |
| 611 | /* Define if you have the mpc library (-lmpc). */ |
| 612 | /* #undef HAVE_LIBMPC */ |
| 613 | |
| 614 | /* Define if you have the nsl library (-lnsl). */ |
| 615 | #define HAVE_LIBNSL 1 |
| 616 | |
| 617 | /* Define if you have the seq library (-lseq). */ |
| 618 | /* #undef HAVE_LIBSEQ */ |
| 619 | |
| 620 | /* Define if you have the socket library (-lsocket). */ |
| 621 | #define HAVE_LIBSOCKET 1 |
| 622 | |
| 623 | /* Define if you have the sun library (-lsun). */ |
| 624 | /* #undef HAVE_LIBSUN */ |
| 625 | |
| 626 | /* Define if you have the termcap library (-ltermcap). */ |
| 627 | /* #undef HAVE_LIBTERMCAP */ |
| 628 | |
| 629 | /* Define if you have the termlib library (-ltermlib). */ |
| 630 | /* #undef HAVE_LIBTERMLIB */ |
| 631 | |
| 632 | /* Define if you have the thread library (-lthread). */ |
| 633 | /* #undef HAVE_LIBTHREAD */ |
Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 634 | #endif /* !Py_CONFIG_H */ |