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, |
| 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 |
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. |
Mark Hammond | 8235ea1 | 2002-07-19 06:55:41 +0000 | [diff] [blame] | 17 | 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] | 18 | |
| 19 | Also note that neither "_M_IX86" or "_MSC_VER" should be used for |
| 20 | any purpose other than "Windows Intel x86 specific" and "Microsoft |
| 21 | compiler specific". Therefore, these should be very rare. |
| 22 | |
Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 23 | |
Mark Hammond | 8235ea1 | 2002-07-19 06:55:41 +0000 | [diff] [blame] | 24 | NOTE: The following symbols are deprecated: |
| 25 | NT, WIN32, USE_DL_EXPORT, USE_DL_IMPORT, DL_EXPORT, DL_IMPORT |
| 26 | MS_CORE_DLL. |
Fred Drake | 91c4e2b | 2000-06-19 13:41:54 +0000 | [diff] [blame] | 27 | |
Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 28 | */ |
| 29 | |
| 30 | #include <io.h> |
| 31 | #define HAVE_LIMITS_H |
Tim Peters | 58e0a8c | 2001-05-14 22:32:33 +0000 | [diff] [blame] | 32 | #define HAVE_SYS_UTIME_H |
Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 33 | #define HAVE_HYPOT |
Fred Drake | 832181e | 2001-07-17 20:35:59 +0000 | [diff] [blame] | 34 | #define HAVE_TEMPNAM |
| 35 | #define HAVE_TMPFILE |
| 36 | #define HAVE_TMPNAM |
Mark Hammond | 8235ea1 | 2002-07-19 06:55:41 +0000 | [diff] [blame] | 37 | #define HAVE_CLOCK |
| 38 | #define HAVE_STRFTIME |
| 39 | #define HAVE_STRERROR |
Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 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 |
Mark Hammond | 8235ea1 | 2002-07-19 06:55:41 +0000 | [diff] [blame] | 43 | #define WORD_BIT 32 |
Guido van Rossum | 950a126 | 1996-07-30 17:38:17 +0000 | [diff] [blame] | 44 | #define PREFIX "" |
| 45 | #define EXEC_PREFIX "" |
Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 46 | |
Mark Hammond | 8235ea1 | 2002-07-19 06:55:41 +0000 | [diff] [blame] | 47 | #define MS_WIN32 /* only support win32 and greater. */ |
| 48 | #define MS_WINDOWS |
| 49 | #ifndef PYTHONPATH |
| 50 | # define PYTHONPATH ".\\DLLs;.\\lib;.\\lib\\plat-win;.\\lib\\lib-tk" |
| 51 | #endif |
| 52 | #define NT_THREADS |
| 53 | #define WITH_THREAD |
| 54 | #ifndef NETSCAPE_PI |
| 55 | #define USE_SOCKET |
| 56 | #endif |
| 57 | |
| 58 | /* Compiler specific defines */ |
| 59 | |
| 60 | /* ------------------------------------------------------------------------*/ |
Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 61 | /* Microsoft C defines _MSC_VER */ |
Guido van Rossum | c66ae96 | 2000-05-08 14:14:48 +0000 | [diff] [blame] | 62 | #ifdef _MSC_VER |
| 63 | |
| 64 | /* MSVC defines _WINxx to differentiate the windows platform types |
| 65 | |
| 66 | Note that for compatibility reasons _WIN32 is defined on Win32 |
| 67 | *and* on Win64. For the same reasons, in Python, MS_WIN32 is |
| 68 | defined on Win32 *and* Win64. Win32 only code must therefore be |
| 69 | guarded as follows: |
| 70 | #if defined(MS_WIN32) && !defined(MS_WIN64) |
| 71 | */ |
| 72 | #ifdef _WIN64 |
| 73 | #define MS_WIN64 |
| 74 | #endif |
Guido van Rossum | c66ae96 | 2000-05-08 14:14:48 +0000 | [diff] [blame] | 75 | |
| 76 | /* set the COMPILER */ |
| 77 | #ifdef MS_WIN64 |
| 78 | #ifdef _M_IX86 |
| 79 | #define COMPILER "[MSC 64 bit (Intel)]" |
| 80 | #elif defined(_M_ALPHA) |
| 81 | #define COMPILER "[MSC 64 bit (Alpha)]" |
| 82 | #else |
| 83 | #define COMPILER "[MSC 64 bit (Unknown)]" |
| 84 | #endif |
| 85 | #endif /* MS_WIN64 */ |
| 86 | |
| 87 | #if defined(MS_WIN32) && !defined(MS_WIN64) |
| 88 | #ifdef _M_IX86 |
| 89 | #define COMPILER "[MSC 32 bit (Intel)]" |
| 90 | #elif defined(_M_ALPHA) |
| 91 | #define COMPILER "[MSC 32 bit (Alpha)]" |
| 92 | #else |
| 93 | #define COMPILER "[MSC (Unknown)]" |
| 94 | #endif |
| 95 | #endif /* MS_WIN32 && !MS_WIN64 */ |
| 96 | |
Mark Hammond | 8235ea1 | 2002-07-19 06:55:41 +0000 | [diff] [blame] | 97 | typedef int pid_t; |
| 98 | #define hypot _hypot |
| 99 | |
Guido van Rossum | c66ae96 | 2000-05-08 14:14:48 +0000 | [diff] [blame] | 100 | #endif /* _MSC_VER */ |
Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 101 | |
Mark Hammond | 8235ea1 | 2002-07-19 06:55:41 +0000 | [diff] [blame] | 102 | /* define some ANSI types that are not defined in earlier Win headers */ |
| 103 | #if defined(_MSC_VER) && _MSC_VER >= 1200 |
| 104 | /* This file only exists in VC 6.0 or higher */ |
| 105 | #include <basetsd.h> |
Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 106 | #endif |
Guido van Rossum | 950a126 | 1996-07-30 17:38:17 +0000 | [diff] [blame] | 107 | |
Mark Hammond | 8235ea1 | 2002-07-19 06:55:41 +0000 | [diff] [blame] | 108 | /* ------------------------------------------------------------------------*/ |
Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 109 | /* The Borland compiler defines __BORLANDC__ */ |
Guido van Rossum | cf6c0ea | 1996-10-21 14:52:24 +0000 | [diff] [blame] | 110 | /* 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] | 111 | #ifdef __BORLANDC__ |
| 112 | #define COMPILER "[Borland]" |
Mark Hammond | c756bdb | 2000-08-15 22:33:59 +0000 | [diff] [blame] | 113 | |
| 114 | #ifdef _WIN32 |
Mark Hammond | c756bdb | 2000-08-15 22:33:59 +0000 | [diff] [blame] | 115 | /* tested with BCC 5.5 (__BORLANDC__ >= 0x0550) |
| 116 | */ |
Mark Hammond | c756bdb | 2000-08-15 22:33:59 +0000 | [diff] [blame] | 117 | |
Mark Hammond | c756bdb | 2000-08-15 22:33:59 +0000 | [diff] [blame] | 118 | typedef int pid_t; |
Mark Hammond | c756bdb | 2000-08-15 22:33:59 +0000 | [diff] [blame] | 119 | /* BCC55 seems to understand __declspec(dllimport), it is used in its |
Mark Hammond | 8235ea1 | 2002-07-19 06:55:41 +0000 | [diff] [blame] | 120 | 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] | 121 | |
Tim Peters | 58e0a8c | 2001-05-14 22:32:33 +0000 | [diff] [blame] | 122 | #undef HAVE_SYS_UTIME_H |
| 123 | #define HAVE_UTIME_H |
| 124 | #define HAVE_DIRENT_H |
Mark Hammond | 8235ea1 | 2002-07-19 06:55:41 +0000 | [diff] [blame] | 125 | |
| 126 | /* rename a few functions for the Borland compiler */ |
| 127 | #include <io.h> |
| 128 | #define _chsize chsize |
| 129 | #define _setmode setmode |
Tim Peters | 7f00deb | 2001-04-21 03:20:47 +0000 | [diff] [blame] | 130 | |
Mark Hammond | c756bdb | 2000-08-15 22:33:59 +0000 | [diff] [blame] | 131 | #else /* !_WIN32 */ |
Guido van Rossum | 6042741 | 2000-11-13 17:29:30 +0000 | [diff] [blame] | 132 | #error "Only Win32 and later are supported" |
Mark Hammond | c756bdb | 2000-08-15 22:33:59 +0000 | [diff] [blame] | 133 | #endif /* !_WIN32 */ |
| 134 | |
Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 135 | #endif /* BORLANDC */ |
| 136 | |
Mark Hammond | 8235ea1 | 2002-07-19 06:55:41 +0000 | [diff] [blame] | 137 | /* ------------------------------------------------------------------------*/ |
Mark Hammond | c756bdb | 2000-08-15 22:33:59 +0000 | [diff] [blame] | 138 | /* egcs/gnu-win32 defines __GNUC__ and _WIN32 */ |
| 139 | #if defined(__GNUC__) && defined(_WIN32) |
Tim Peters | b26f363 | 2002-03-22 06:32:32 +0000 | [diff] [blame] | 140 | /* XXX These defines are likely incomplete, but should be easy to fix. |
Mark Hammond | c756bdb | 2000-08-15 22:33:59 +0000 | [diff] [blame] | 141 | They should be complete enough to build extension modules. */ |
| 142 | /* Suggested by Rene Liebscher <R.Liebscher@gmx.de> to avoid a GCC 2.91.* |
| 143 | bug that requires structure imports. More recent versions of the |
| 144 | compiler don't exhibit this bug. |
| 145 | */ |
| 146 | #if (__GNUC__==2) && (__GNUC_MINOR__<=91) |
| 147 | #warning "Please use an up-to-date version of gcc! (>2.91 recommended)" |
| 148 | #endif |
| 149 | |
Mark Hammond | c756bdb | 2000-08-15 22:33:59 +0000 | [diff] [blame] | 150 | #define COMPILER "[gcc]" |
Mark Hammond | c756bdb | 2000-08-15 22:33:59 +0000 | [diff] [blame] | 151 | #define hypot _hypot |
Tim Peters | b26f363 | 2002-03-22 06:32:32 +0000 | [diff] [blame] | 152 | #define LONG_LONG long long |
Mark Hammond | c756bdb | 2000-08-15 22:33:59 +0000 | [diff] [blame] | 153 | #endif /* GNUC */ |
| 154 | |
Mark Hammond | 8235ea1 | 2002-07-19 06:55:41 +0000 | [diff] [blame] | 155 | /* ------------------------------------------------------------------------*/ |
Mark Hammond | c756bdb | 2000-08-15 22:33:59 +0000 | [diff] [blame] | 156 | /* lcc-win32 defines __LCC__ */ |
Mark Hammond | c756bdb | 2000-08-15 22:33:59 +0000 | [diff] [blame] | 157 | #if defined(__LCC__) |
Tim Peters | b26f363 | 2002-03-22 06:32:32 +0000 | [diff] [blame] | 158 | /* XXX These defines are likely incomplete, but should be easy to fix. |
Mark Hammond | c756bdb | 2000-08-15 22:33:59 +0000 | [diff] [blame] | 159 | They should be complete enough to build extension modules. */ |
| 160 | |
Mark Hammond | c756bdb | 2000-08-15 22:33:59 +0000 | [diff] [blame] | 161 | #define COMPILER "[lcc-win32]" |
Mark Hammond | c756bdb | 2000-08-15 22:33:59 +0000 | [diff] [blame] | 162 | typedef int pid_t; |
Mark Hammond | 8235ea1 | 2002-07-19 06:55:41 +0000 | [diff] [blame] | 163 | /* __declspec() is supported here too - do nothing to get the defaults */ |
Mark Hammond | c756bdb | 2000-08-15 22:33:59 +0000 | [diff] [blame] | 164 | |
Mark Hammond | c756bdb | 2000-08-15 22:33:59 +0000 | [diff] [blame] | 165 | #endif /* LCC */ |
| 166 | |
Mark Hammond | 8235ea1 | 2002-07-19 06:55:41 +0000 | [diff] [blame] | 167 | /* ------------------------------------------------------------------------*/ |
Guido van Rossum | 950a126 | 1996-07-30 17:38:17 +0000 | [diff] [blame] | 168 | /* End of compilers - finish up */ |
| 169 | |
Mark Hammond | 8235ea1 | 2002-07-19 06:55:41 +0000 | [diff] [blame] | 170 | #ifndef NO_STDIO_H |
| 171 | # include <stdio.h> |
Guido van Rossum | 361b583 | 2000-06-30 22:17:53 +0000 | [diff] [blame] | 172 | #endif |
Fred Drake | a3f6e91 | 2000-06-29 20:44:47 +0000 | [diff] [blame] | 173 | |
Mark Hammond | 8235ea1 | 2002-07-19 06:55:41 +0000 | [diff] [blame] | 174 | /* 64 bit ints are usually spelt __int64 unless compiler has overridden */ |
| 175 | #define HAVE_LONG_LONG 1 |
| 176 | #ifndef LONG_LONG |
| 177 | # define LONG_LONG __int64 |
| 178 | #endif |
| 179 | |
| 180 | /* For Windows the Python core is in a DLL by default. Test |
| 181 | Py_NO_ENABLE_SHARED to find out. Also support MS_NO_COREDLL for b/w compat */ |
| 182 | #if !defined(MS_NO_COREDLL) && !defined(Py_NO_ENABLE_SHARED) |
| 183 | # define Py_ENABLE_SHARED 1 /* standard symbol for shared library */ |
| 184 | # define MS_COREDLL /* deprecated old symbol */ |
| 185 | #endif /* !MS_NO_COREDLL && ... */ |
| 186 | |
| 187 | /* Deprecated USE_DL_EXPORT macro - please use Py_BUILD_CORE */ |
| 188 | #ifdef USE_DL_EXPORT |
| 189 | # define Py_BUILD_CORE |
| 190 | #endif /* USE_DL_EXPORT */ |
| 191 | |
| 192 | /* All windows compilers that use this header support __declspec */ |
| 193 | #define HAVE_DECLSPEC_DLL |
| 194 | |
| 195 | /* For an MSVC DLL, we can nominate the .lib files used by extensions */ |
| 196 | #ifdef MS_COREDLL |
| 197 | # ifndef Py_BUILD_CORE /* not building the core - must be an ext */ |
| 198 | # if defined(_MSC_VER) |
| 199 | /* So MSVC users need not specify the .lib file in |
| 200 | their Makefile (other compilers are generally |
| 201 | taken care of by distutils.) */ |
| 202 | # ifdef _DEBUG |
| 203 | # pragma comment(lib,"python23_d.lib") |
| 204 | # else |
| 205 | # pragma comment(lib,"python23.lib") |
| 206 | # endif /* _DEBUG */ |
| 207 | # endif /* _MSC_VER */ |
| 208 | # endif /* Py_BUILD_CORE */ |
| 209 | #endif /* MS_COREDLL */ |
| 210 | |
Guido van Rossum | c66ae96 | 2000-05-08 14:14:48 +0000 | [diff] [blame] | 211 | #if defined(MS_WIN64) |
Guido van Rossum | da5cc82 | 2000-05-10 13:25:32 +0000 | [diff] [blame] | 212 | /* maintain "win32" sys.platform for backward compatibility of Python code, |
| 213 | the Win64 API should be close enough to the Win32 API to make this |
| 214 | preferable */ |
Fred Drake | a3f6e91 | 2000-06-29 20:44:47 +0000 | [diff] [blame] | 215 | # define PLATFORM "win32" |
| 216 | # define SIZEOF_VOID_P 8 |
| 217 | # define SIZEOF_TIME_T 8 |
| 218 | # define SIZEOF_OFF_T 4 |
| 219 | # define SIZEOF_FPOS_T 8 |
| 220 | # define SIZEOF_HKEY 8 |
| 221 | /* configure.in defines HAVE_LARGEFILE_SUPPORT iff HAVE_LONG_LONG, |
| 222 | sizeof(off_t) > sizeof(long), and sizeof(LONG_LONG) >= sizeof(off_t). |
| 223 | On Win64 the second condition is not true, but if fpos_t replaces off_t |
| 224 | then this is true. The uses of HAVE_LARGEFILE_SUPPORT imply that Win64 |
| 225 | should define this. */ |
| 226 | # define HAVE_LARGEFILE_SUPPORT |
Guido van Rossum | c66ae96 | 2000-05-08 14:14:48 +0000 | [diff] [blame] | 227 | #elif defined(MS_WIN32) |
Fred Drake | a3f6e91 | 2000-06-29 20:44:47 +0000 | [diff] [blame] | 228 | # define PLATFORM "win32" |
Tim Peters | 6e13a56 | 2001-09-06 00:32:15 +0000 | [diff] [blame] | 229 | # define HAVE_LARGEFILE_SUPPORT |
Fred Drake | a3f6e91 | 2000-06-29 20:44:47 +0000 | [diff] [blame] | 230 | # ifdef _M_ALPHA |
| 231 | # define SIZEOF_VOID_P 8 |
| 232 | # define SIZEOF_TIME_T 8 |
| 233 | # else |
| 234 | # define SIZEOF_VOID_P 4 |
| 235 | # define SIZEOF_TIME_T 4 |
| 236 | # define SIZEOF_OFF_T 4 |
| 237 | # define SIZEOF_FPOS_T 8 |
| 238 | # define SIZEOF_HKEY 4 |
| 239 | # endif |
Guido van Rossum | c66ae96 | 2000-05-08 14:14:48 +0000 | [diff] [blame] | 240 | #endif |
| 241 | |
Mark Hammond | 8235ea1 | 2002-07-19 06:55:41 +0000 | [diff] [blame] | 242 | #ifdef _DEBUG |
| 243 | # define Py_DEBUG |
| 244 | #endif |
| 245 | |
Guido van Rossum | 950a126 | 1996-07-30 17:38:17 +0000 | [diff] [blame] | 246 | |
Guido van Rossum | f4aeb84 | 1998-02-19 20:59:23 +0000 | [diff] [blame] | 247 | #ifdef MS_WIN32 |
Guido van Rossum | d3ab101 | 1998-05-29 02:53:29 +0000 | [diff] [blame] | 248 | |
Tim Peters | 208efe5 | 2001-06-26 22:40:47 +0000 | [diff] [blame] | 249 | #define SIZEOF_SHORT 2 |
Guido van Rossum | d3ab101 | 1998-05-29 02:53:29 +0000 | [diff] [blame] | 250 | #define SIZEOF_INT 4 |
| 251 | #define SIZEOF_LONG 4 |
Guido van Rossum | b00d252 | 1998-09-17 13:19:36 +0000 | [diff] [blame] | 252 | #define SIZEOF_LONG_LONG 8 |
Guido van Rossum | d3ab101 | 1998-05-29 02:53:29 +0000 | [diff] [blame] | 253 | |
Guido van Rossum | f4aeb84 | 1998-02-19 20:59:23 +0000 | [diff] [blame] | 254 | #endif |
| 255 | |
Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 256 | /* Fairly standard from here! */ |
| 257 | |
| 258 | /* Define if on AIX 3. |
| 259 | System headers sometimes define this. |
| 260 | We just want to avoid a redefinition error message. */ |
| 261 | #ifndef _ALL_SOURCE |
| 262 | /* #undef _ALL_SOURCE */ |
| 263 | #endif |
| 264 | |
| 265 | /* Define to empty if the keyword does not work. */ |
| 266 | /* #define const */ |
| 267 | |
| 268 | /* Define if you have dirent.h. */ |
| 269 | /* #define DIRENT 1 */ |
| 270 | |
| 271 | /* Define to the type of elements in the array set by `getgroups'. |
| 272 | Usually this is either `int' or `gid_t'. */ |
| 273 | /* #undef GETGROUPS_T */ |
| 274 | |
| 275 | /* Define to `int' if <sys/types.h> doesn't define. */ |
| 276 | /* #undef gid_t */ |
| 277 | |
| 278 | /* Define if your struct tm has tm_zone. */ |
| 279 | /* #undef HAVE_TM_ZONE */ |
| 280 | |
| 281 | /* Define if you don't have tm_zone but do have the external array |
| 282 | tzname. */ |
| 283 | #define HAVE_TZNAME |
| 284 | |
| 285 | /* Define if on MINIX. */ |
| 286 | /* #undef _MINIX */ |
| 287 | |
| 288 | /* Define to `int' if <sys/types.h> doesn't define. */ |
| 289 | /* #undef mode_t */ |
| 290 | |
| 291 | /* Define if you don't have dirent.h, but have ndir.h. */ |
| 292 | /* #undef NDIR */ |
| 293 | |
| 294 | /* Define to `long' if <sys/types.h> doesn't define. */ |
| 295 | /* #undef off_t */ |
| 296 | |
| 297 | /* Define to `int' if <sys/types.h> doesn't define. */ |
| 298 | /* #undef pid_t */ |
| 299 | |
| 300 | /* Define if the system does not provide POSIX.1 features except |
| 301 | with this defined. */ |
| 302 | /* #undef _POSIX_1_SOURCE */ |
| 303 | |
| 304 | /* Define if you need to in order for stat and other things to work. */ |
| 305 | /* #undef _POSIX_SOURCE */ |
| 306 | |
| 307 | /* Define as the return type of signal handlers (int or void). */ |
| 308 | #define RETSIGTYPE void |
| 309 | |
| 310 | /* Define to `unsigned' if <sys/types.h> doesn't define. */ |
| 311 | /* #undef size_t */ |
| 312 | |
Guido van Rossum | db575db | 2000-04-24 15:37:34 +0000 | [diff] [blame] | 313 | /* Define to `int' if <sys/types.h> doesn't define. */ |
Martin v. Löwis | 272cb40 | 2002-03-01 08:31:07 +0000 | [diff] [blame] | 314 | #if _MSC_VER + 0 >= 1300 |
| 315 | /* VC.NET typedefs socklen_t in ws2tcpip.h. */ |
| 316 | #else |
Guido van Rossum | db575db | 2000-04-24 15:37:34 +0000 | [diff] [blame] | 317 | #define socklen_t int |
Martin v. Löwis | 272cb40 | 2002-03-01 08:31:07 +0000 | [diff] [blame] | 318 | #endif |
Guido van Rossum | db575db | 2000-04-24 15:37:34 +0000 | [diff] [blame] | 319 | |
Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 320 | /* Define if you have the ANSI C header files. */ |
| 321 | #define STDC_HEADERS 1 |
| 322 | |
| 323 | /* Define if you don't have dirent.h, but have sys/dir.h. */ |
| 324 | /* #undef SYSDIR */ |
| 325 | |
| 326 | /* Define if you don't have dirent.h, but have sys/ndir.h. */ |
| 327 | /* #undef SYSNDIR */ |
| 328 | |
| 329 | /* Define if you can safely include both <sys/time.h> and <time.h>. */ |
| 330 | /* #undef TIME_WITH_SYS_TIME */ |
| 331 | |
| 332 | /* Define if your <sys/time.h> declares struct tm. */ |
| 333 | /* #define TM_IN_SYS_TIME 1 */ |
| 334 | |
| 335 | /* Define to `int' if <sys/types.h> doesn't define. */ |
| 336 | /* #undef uid_t */ |
| 337 | |
| 338 | /* Define if the closedir function returns void instead of int. */ |
| 339 | /* #undef VOID_CLOSEDIR */ |
| 340 | |
| 341 | /* Define if your <unistd.h> contains bad prototypes for exec*() |
| 342 | (as it does on SGI IRIX 4.x) */ |
| 343 | /* #undef BAD_EXEC_PROTOTYPES */ |
| 344 | |
Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 345 | /* Define if getpgrp() must be called as getpgrp(0) |
| 346 | and (consequently) setpgrp() as setpgrp(0, 0). */ |
| 347 | /* #undef GETPGRP_HAVE_ARGS */ |
| 348 | |
| 349 | /* Define this if your time.h defines altzone */ |
| 350 | /* #define HAVE_ALTZONE */ |
| 351 | |
Guido van Rossum | eaf9b6c | 1996-08-22 00:06:59 +0000 | [diff] [blame] | 352 | /* Define if you have the putenv function. */ |
Guido van Rossum | eaf9b6c | 1996-08-22 00:06:59 +0000 | [diff] [blame] | 353 | #define HAVE_PUTENV |
Guido van Rossum | eaf9b6c | 1996-08-22 00:06:59 +0000 | [diff] [blame] | 354 | |
Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 355 | /* Define if your compiler supports function prototypes */ |
| 356 | #define HAVE_PROTOTYPES |
| 357 | |
| 358 | /* Define if you can safely include both <sys/select.h> and <sys/time.h> |
| 359 | (which you can't on SCO ODT 3.0). */ |
| 360 | /* #undef SYS_SELECT_WITH_SYS_TIME */ |
| 361 | |
| 362 | /* Define if you want to use SGI (IRIX 4) dynamic linking. |
| 363 | This requires the "dl" library by Jack Jansen, |
| 364 | ftp://ftp.cwi.nl/pub/dynload/dl-1.6.tar.Z. |
| 365 | 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] | 366 | style shared libraries */ |
Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 367 | /* #undef WITH_SGI_DL */ |
| 368 | |
| 369 | /* Define if you want to emulate SGI (IRIX 4) dynamic linking. |
| 370 | This is rumoured to work on VAX (Ultrix), Sun3 (SunOS 3.4), |
| 371 | Sequent Symmetry (Dynix), and Atari ST. |
| 372 | This requires the "dl-dld" library, |
| 373 | ftp://ftp.cwi.nl/pub/dynload/dl-dld-1.1.tar.Z, |
| 374 | as well as the "GNU dld" library, |
| 375 | ftp://ftp.cwi.nl/pub/dynload/dld-3.2.3.tar.Z. |
| 376 | 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] | 377 | shared libraries */ |
Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 378 | /* #undef WITH_DL_DLD */ |
| 379 | |
Martin v. Löwis | 2befa48 | 2002-06-09 13:41:37 +0000 | [diff] [blame] | 380 | /* Define if you want documentation strings in extension modules */ |
| 381 | #define WITH_DOC_STRINGS 1 |
| 382 | |
Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 383 | /* Define if you want to compile in rudimentary thread support */ |
| 384 | /* #undef WITH_THREAD */ |
| 385 | |
| 386 | /* Define if you want to use the GNU readline library */ |
| 387 | /* #define WITH_READLINE 1 */ |
| 388 | |
Fredrik Lundh | 9b14ab3 | 2001-06-26 22:59:49 +0000 | [diff] [blame] | 389 | /* Define if you want to have a Unicode type. */ |
| 390 | #define Py_USING_UNICODE |
| 391 | |
| 392 | /* Define as the integral type used for Unicode representation. */ |
| 393 | #define PY_UNICODE_TYPE unsigned short |
| 394 | |
| 395 | /* Define as the size of the unicode type. */ |
| 396 | #define Py_UNICODE_SIZE SIZEOF_SHORT |
| 397 | |
Fredrik Lundh | 793c197 | 2001-06-27 19:49:17 +0000 | [diff] [blame] | 398 | /* Define if you have a useable wchar_t type defined in wchar.h; useable |
| 399 | means wchar_t must be 16-bit unsigned type. (see |
| 400 | Include/unicodeobject.h). */ |
| 401 | #if Py_UNICODE_SIZE == 2 |
| 402 | #define HAVE_USABLE_WCHAR_T |
Mark Hammond | c2e85bd | 2002-10-03 05:10:39 +0000 | [diff] [blame] | 403 | |
| 404 | /* Define to indicate that the Python Unicode representation can be passed |
| 405 | as-is to Win32 Wide API. */ |
| 406 | #define Py_WIN_WIDE_FILENAMES |
Fredrik Lundh | 793c197 | 2001-06-27 19:49:17 +0000 | [diff] [blame] | 407 | #endif |
| 408 | |
Tim Peters | b26f363 | 2002-03-22 06:32:32 +0000 | [diff] [blame] | 409 | /* Use Python's own small-block memory-allocator. */ |
| 410 | #define WITH_PYMALLOC 1 |
| 411 | |
Tim Peters | 639295f | 2002-04-21 07:30:30 +0000 | [diff] [blame] | 412 | /* Enable \n, \r, \r\n line ends on import; also the 'U' mode flag for open. */ |
| 413 | #define WITH_UNIVERSAL_NEWLINES 1 |
| 414 | |
Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 415 | /* Define if you have clock. */ |
| 416 | /* #define HAVE_CLOCK */ |
| 417 | |
Guido van Rossum | 9f9fa6d | 1999-12-20 22:57:41 +0000 | [diff] [blame] | 418 | /* Define when any dynamic module loading is enabled */ |
| 419 | #define HAVE_DYNAMIC_LOADING |
| 420 | |
Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 421 | /* Define if you have ftime. */ |
| 422 | #define HAVE_FTIME |
| 423 | |
| 424 | /* Define if you have getpeername. */ |
Guido van Rossum | c339753 | 1997-05-06 15:58:18 +0000 | [diff] [blame] | 425 | #define HAVE_GETPEERNAME |
Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 426 | |
| 427 | /* Define if you have getpgrp. */ |
| 428 | /* #undef HAVE_GETPGRP */ |
| 429 | |
| 430 | /* Define if you have getpid. */ |
Guido van Rossum | c339753 | 1997-05-06 15:58:18 +0000 | [diff] [blame] | 431 | #define HAVE_GETPID |
Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 432 | |
| 433 | /* Define if you have gettimeofday. */ |
| 434 | /* #undef HAVE_GETTIMEOFDAY */ |
| 435 | |
| 436 | /* Define if you have getwd. */ |
| 437 | /* #undef HAVE_GETWD */ |
| 438 | |
| 439 | /* Define if you have lstat. */ |
| 440 | /* #undef HAVE_LSTAT */ |
| 441 | |
Guido van Rossum | 63096d4 | 1998-04-10 21:28:49 +0000 | [diff] [blame] | 442 | /* Define if you have the mktime function. */ |
| 443 | #define HAVE_MKTIME |
| 444 | |
Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 445 | /* Define if you have nice. */ |
| 446 | /* #undef HAVE_NICE */ |
| 447 | |
| 448 | /* Define if you have readlink. */ |
| 449 | /* #undef HAVE_READLINK */ |
| 450 | |
| 451 | /* Define if you have select. */ |
| 452 | /* #undef HAVE_SELECT */ |
| 453 | |
| 454 | /* Define if you have setpgid. */ |
| 455 | /* #undef HAVE_SETPGID */ |
| 456 | |
| 457 | /* Define if you have setpgrp. */ |
| 458 | /* #undef HAVE_SETPGRP */ |
| 459 | |
| 460 | /* Define if you have setsid. */ |
| 461 | /* #undef HAVE_SETSID */ |
| 462 | |
Guido van Rossum | c339753 | 1997-05-06 15:58:18 +0000 | [diff] [blame] | 463 | /* Define if you have setvbuf. */ |
| 464 | #define HAVE_SETVBUF |
| 465 | |
Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 466 | /* Define if you have siginterrupt. */ |
| 467 | /* #undef HAVE_SIGINTERRUPT */ |
| 468 | |
| 469 | /* Define if you have symlink. */ |
| 470 | /* #undef HAVE_SYMLINK */ |
| 471 | |
| 472 | /* Define if you have tcgetpgrp. */ |
| 473 | /* #undef HAVE_TCGETPGRP */ |
| 474 | |
| 475 | /* Define if you have tcsetpgrp. */ |
| 476 | /* #undef HAVE_TCSETPGRP */ |
| 477 | |
| 478 | /* Define if you have times. */ |
| 479 | /* #undef HAVE_TIMES */ |
| 480 | |
| 481 | /* Define if you have uname. */ |
| 482 | /* #undef HAVE_UNAME */ |
| 483 | |
| 484 | /* Define if you have waitpid. */ |
| 485 | /* #undef HAVE_WAITPID */ |
| 486 | |
| 487 | /* Define if you have the <dlfcn.h> header file. */ |
| 488 | /* #undef HAVE_DLFCN_H */ |
| 489 | |
| 490 | /* Define if you have the <fcntl.h> header file. */ |
| 491 | #define HAVE_FCNTL_H 1 |
| 492 | |
| 493 | /* Define if you have the <signal.h> header file. */ |
| 494 | #define HAVE_SIGNAL_H 1 |
| 495 | |
| 496 | /* Define if you have the <stdarg.h> header file. */ |
| 497 | #define HAVE_STDARG_H 1 |
| 498 | |
| 499 | /* Define if you have the <stdarg.h> prototypes. */ |
| 500 | #define HAVE_STDARG_PROTOTYPES |
| 501 | |
Guido van Rossum | 4da55f0 | 1998-09-23 13:35:45 +0000 | [diff] [blame] | 502 | /* Define if you have the <stddef.h> header file. */ |
| 503 | #define HAVE_STDDEF_H 1 |
| 504 | |
Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 505 | /* Define if you have the <stdlib.h> header file. */ |
| 506 | #define HAVE_STDLIB_H 1 |
| 507 | |
| 508 | /* Define if you have the <sys/audioio.h> header file. */ |
| 509 | /* #undef HAVE_SYS_AUDIOIO_H */ |
| 510 | |
| 511 | /* Define if you have the <sys/param.h> header file. */ |
| 512 | /* #define HAVE_SYS_PARAM_H 1 */ |
| 513 | |
| 514 | /* Define if you have the <sys/select.h> header file. */ |
| 515 | /* #define HAVE_SYS_SELECT_H 1 */ |
| 516 | |
| 517 | /* Define if you have the <sys/time.h> header file. */ |
| 518 | /* #define HAVE_SYS_TIME_H 1 */ |
| 519 | |
| 520 | /* Define if you have the <sys/times.h> header file. */ |
| 521 | /* #define HAVE_SYS_TIMES_H 1 */ |
| 522 | |
| 523 | /* Define if you have the <sys/un.h> header file. */ |
| 524 | /* #define HAVE_SYS_UN_H 1 */ |
| 525 | |
| 526 | /* Define if you have the <sys/utime.h> header file. */ |
Tim Peters | 58e0a8c | 2001-05-14 22:32:33 +0000 | [diff] [blame] | 527 | /* #define HAVE_SYS_UTIME_H 1 */ |
Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 528 | |
| 529 | /* Define if you have the <sys/utsname.h> header file. */ |
| 530 | /* #define HAVE_SYS_UTSNAME_H 1 */ |
| 531 | |
| 532 | /* Define if you have the <thread.h> header file. */ |
| 533 | /* #undef HAVE_THREAD_H */ |
| 534 | |
| 535 | /* Define if you have the <unistd.h> header file. */ |
| 536 | /* #define HAVE_UNISTD_H 1 */ |
| 537 | |
| 538 | /* Define if you have the <utime.h> header file. */ |
| 539 | /* #define HAVE_UTIME_H 1 */ |
| 540 | |
| 541 | /* Define if you have the dl library (-ldl). */ |
| 542 | /* #undef HAVE_LIBDL */ |
| 543 | |
| 544 | /* Define if you have the mpc library (-lmpc). */ |
| 545 | /* #undef HAVE_LIBMPC */ |
| 546 | |
| 547 | /* Define if you have the nsl library (-lnsl). */ |
| 548 | #define HAVE_LIBNSL 1 |
| 549 | |
| 550 | /* Define if you have the seq library (-lseq). */ |
| 551 | /* #undef HAVE_LIBSEQ */ |
| 552 | |
| 553 | /* Define if you have the socket library (-lsocket). */ |
| 554 | #define HAVE_LIBSOCKET 1 |
| 555 | |
| 556 | /* Define if you have the sun library (-lsun). */ |
| 557 | /* #undef HAVE_LIBSUN */ |
| 558 | |
| 559 | /* Define if you have the termcap library (-ltermcap). */ |
| 560 | /* #undef HAVE_LIBTERMCAP */ |
| 561 | |
| 562 | /* Define if you have the termlib library (-ltermlib). */ |
| 563 | /* #undef HAVE_LIBTERMLIB */ |
| 564 | |
| 565 | /* Define if you have the thread library (-lthread). */ |
| 566 | /* #undef HAVE_LIBTHREAD */ |
Guido van Rossum | 87d5e70 | 1996-05-28 22:50:17 +0000 | [diff] [blame] | 567 | #endif /* !Py_CONFIG_H */ |