python-2.7.11/Include/pyconfig.h Source File
Go to the documentation of this file.
39 # define Py_BUILD_CORE
49 #ifndef _CRT_SECURE_NO_DEPRECATE
50 #define _CRT_SECURE_NO_DEPRECATE 1
52 #ifndef _CRT_NONSTDC_NO_DEPRECATE
53 #define _CRT_NONSTDC_NO_DEPRECATE 1
59 #define HAVE_SYS_UTIME_H
73 #define DONT_HAVE_SIG_ALARM
74 #define DONT_HAVE_SIG_PAUSE
78 #define EXEC_PREFIX ""
83 # define PYTHONPATH ".\\DLLs;.\\lib;.\\lib\\plat-win;.\\lib\\lib-tk"
94 # define strdup _strdup
99 #define getenv(v) (NULL)
100 #define environ (NULL)
115 #define _Py_PASTE_VERSION(SUFFIX) \
116 ("[MSC v." _Py_STRINGIZE(_MSC_VER) " " SUFFIX "]")
127 #define _Py_STRINGIZE(X) _Py_STRINGIZE1((X))
128 #define _Py_STRINGIZE1(X) _Py_STRINGIZE2 ## X
129 #define _Py_STRINGIZE2(X) #X
148 #define COMPILER _Py_PASTE_VERSION("64 bit (Itanium)")
150 #elif defined(_M_X64) || defined(_M_AMD64)
151 #ifdef __INTEL_COMPILER
152 #define COMPILER ("[ICC v." _Py_STRINGIZE(__INTEL_COMPILER) " 64 bit (amd64) with MSC v." _Py_STRINGIZE(_MSC_VER) " CRT]")
154 #define COMPILER _Py_PASTE_VERSION("64 bit (AMD64)")
158 #define COMPILER _Py_PASTE_VERSION("64 bit (Unknown)")
165 #define Py_WINVER _WIN32_WINNT_WINXP
166 #define Py_NTDDI NTDDI_WINXP
169 #ifdef _WIN32_WINNT_WIN2K
170 #define Py_WINVER _WIN32_WINNT_WIN2K
172 #define Py_WINVER 0x0500
174 #define Py_NTDDI NTDDI_WIN2KSP4
184 #if defined(Py_BUILD_CORE) || defined(Py_BUILD_CORE_MODULE)
185 #ifndef NTDDI_VERSION
186 #define NTDDI_VERSION Py_NTDDI
189 #define WINVER Py_WINVER
192 #define _WIN32_WINNT Py_WINVER
203 typedef __int64 ssize_t;
205 typedef _W64
int ssize_t;
207 #define HAVE_SSIZE_T 1
209 #if defined(MS_WIN32) && !defined(MS_WIN64)
211 #ifdef __INTEL_COMPILER
212 #define COMPILER ("[ICC v." _Py_STRINGIZE(__INTEL_COMPILER) " 32 bit (Intel) with MSC v." _Py_STRINGIZE(_MSC_VER) " CRT]")
214 #define COMPILER _Py_PASTE_VERSION("32 bit (Intel)")
217 #define COMPILER _Py_PASTE_VERSION("32 bit (Unknown)")
225 #define Py_IS_NAN _isnan
226 #define Py_IS_INFINITY(X) (!_finite(X) && !_isnan(X))
227 #define Py_IS_FINITE(X) _finite(X)
230 #define copysign _copysign
237 #if defined(_MSC_VER) && _MSC_VER >= 1200
246 #define COMPILER "[Borland]"
258 #undef HAVE_SYS_UTIME_H
260 #define HAVE_DIRENT_H
264 #define _chsize chsize
265 #define _setmode setmode
268 #error "Only Win32 and later are supported"
275 #if defined(__GNUC__) && defined(_WIN32)
282 #if (__GNUC__==2) && (__GNUC_MINOR__<=91)
283 #warning "Please use an up-to-date version of gcc! (>2.91 recommended)"
286 #define COMPILER "[gcc]"
288 #define PY_LONG_LONG long long
289 #define PY_LLONG_MIN LLONG_MIN
290 #define PY_LLONG_MAX LLONG_MAX
291 #define PY_ULLONG_MAX ULLONG_MAX
300 #define COMPILER "[lcc-win32]"
316 #define HAVE_LONG_LONG 1
318 # define PY_LONG_LONG __int64
319 # define PY_LLONG_MAX _I64_MAX
320 # define PY_LLONG_MIN _I64_MIN
321 # define PY_ULLONG_MAX _UI64_MAX
326 #if !defined(MS_NO_COREDLL) && !defined(Py_NO_ENABLE_SHARED)
327 # define Py_ENABLE_SHARED 1
332 #define HAVE_DECLSPEC_DLL
336 # ifndef Py_BUILD_CORE
337 # if defined(_MSC_VER)
342 # pragma comment(lib,"python27_d.lib")
344 # pragma comment(lib,"python27.lib")
350 #if defined(MS_WIN64)
354 # define PLATFORM "win32"
355 # define SIZEOF_VOID_P 8
356 # define SIZEOF_TIME_T 8
357 # define SIZEOF_OFF_T 4
358 # define SIZEOF_FPOS_T 8
359 # define SIZEOF_HKEY 8
360 # define SIZEOF_SIZE_T 8
366 # define HAVE_LARGEFILE_SUPPORT
367 #elif defined(MS_WIN32)
368 # define PLATFORM "win32"
369 # define HAVE_LARGEFILE_SUPPORT
370 # define SIZEOF_VOID_P 4
371 # define SIZEOF_OFF_T 4
372 # define SIZEOF_FPOS_T 8
373 # define SIZEOF_HKEY 4
374 # define SIZEOF_SIZE_T 4
376 # if defined(_MSC_VER) && _MSC_VER >= 1400
377 # define SIZEOF_TIME_T 8
379 # define SIZEOF_TIME_T 4
390 #define SIZEOF_SHORT 2
392 #define SIZEOF_LONG 4
393 #define SIZEOF_LONG_LONG 8
394 #define SIZEOF_DOUBLE 8
395 #define SIZEOF_FLOAT 4
401 #if defined(_MSC_VER)
403 #define HAVE_UINTPTR_T 1
404 #define HAVE_INTPTR_T 1
407 #define Py_LL(x) x##I64
417 #define HAVE_UINT32_T 1
418 #define PY_UINT32_T unsigned int
419 #elif SIZEOF_LONG == 4
420 #define HAVE_UINT32_T 1
421 #define PY_UINT32_T unsigned long
426 #if SIZEOF_LONG_LONG == 8
427 #define HAVE_UINT64_T 1
428 #define PY_UINT64_T unsigned PY_LONG_LONG
434 #define HAVE_INT32_T 1
435 #define PY_INT32_T int
436 #elif SIZEOF_LONG == 4
437 #define HAVE_INT32_T 1
438 #define PY_INT32_T long
443 #if SIZEOF_LONG_LONG == 8
444 #define HAVE_INT64_T 1
445 #define PY_INT64_T PY_LONG_LONG
452 #define HAVE_COPYSIGN 1
460 #define HAVE_DECL_ISINF 1
463 #define HAVE_DECL_ISNAN 1
477 #define HAVE_CONIO_H 1
482 #define HAVE_DIRECT_H 1
522 #define RETSIGTYPE void
528 #define STDC_HEADERS 1
561 #define HAVE_PROTOTYPES
568 #define WITH_DOC_STRINGS 1
577 #define Py_USING_UNICODE
581 #define Py_UNICODE_SIZE 2
584 #define WITH_PYMALLOC 1
590 #define HAVE_DYNAMIC_LOADING
598 #define HAVE_GETPEERNAME
664 #define HAVE_WCSCOLL 1
668 #define HAVE_ZLIB_COPY 1
675 #define HAVE_ERRNO_H 1
680 #define HAVE_FCNTL_H 1
685 #define HAVE_PROCESS_H 1
690 #define HAVE_SIGNAL_H 1
694 #define HAVE_STDARG_PROTOTYPES
697 #define HAVE_STDDEF_H 1
710 #define HAVE_SYS_STAT_H 1
721 #define HAVE_SYS_TYPES_H 1
743 #define HAVE_WCHAR_H 1
752 #define HAVE_LIBNSL 1
758 #define HAVE_LIBSOCKET 1
774 #define Py_SOCKET_FD_CAN_BE_GE_FD_SETSIZE
778 #define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1