python-2.7.6/include/pyconfig-win32.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 #define COMPILER _Py_PASTE_VERSION("64 bit (AMD64)")
154 #define COMPILER _Py_PASTE_VERSION("64 bit (Unknown)")
161 #define Py_WINVER _WIN32_WINNT_WINXP
162 #define Py_NTDDI NTDDI_WINXP
165 #ifdef _WIN32_WINNT_WIN2K
166 #define Py_WINVER _WIN32_WINNT_WIN2K
168 #define Py_WINVER 0x0500
170 #define Py_NTDDI NTDDI_WIN2KSP4
180 #if defined(Py_BUILD_CORE) || defined(Py_BUILD_CORE_MODULE)
181 #ifndef NTDDI_VERSION
182 #define NTDDI_VERSION Py_NTDDI
185 #define WINVER Py_WINVER
188 #define _WIN32_WINNT Py_WINVER
199 typedef __int64 ssize_t;
201 typedef _W64
int ssize_t;
203 #define HAVE_SSIZE_T 1
205 #if defined(MS_WIN32) && !defined(MS_WIN64)
207 #define COMPILER _Py_PASTE_VERSION("32 bit (Intel)")
209 #define COMPILER _Py_PASTE_VERSION("32 bit (Unknown)")
217 #define Py_IS_NAN _isnan
218 #define Py_IS_INFINITY(X) (!_finite(X) && !_isnan(X))
219 #define Py_IS_FINITE(X) _finite(X)
220 #define copysign _copysign
226 #if defined(_MSC_VER) && _MSC_VER >= 1200
235 #define COMPILER "[Borland]"
247 #undef HAVE_SYS_UTIME_H
249 #define HAVE_DIRENT_H
253 #define _chsize chsize
254 #define _setmode setmode
257 #error "Only Win32 and later are supported"
264 #if defined(__GNUC__) && defined(_WIN32)
271 #if (__GNUC__==2) && (__GNUC_MINOR__<=91)
272 #warning "Please use an up-to-date version of gcc! (>2.91 recommended)"
275 #define COMPILER "[gcc]"
277 #define PY_LONG_LONG long long
278 #define PY_LLONG_MIN LLONG_MIN
279 #define PY_LLONG_MAX LLONG_MAX
280 #define PY_ULLONG_MAX ULLONG_MAX
289 #define COMPILER "[lcc-win32]"
305 #define HAVE_LONG_LONG 1
307 # define PY_LONG_LONG __int64
308 # define PY_LLONG_MAX _I64_MAX
309 # define PY_LLONG_MIN _I64_MIN
310 # define PY_ULLONG_MAX _UI64_MAX
315 #if !defined(MS_NO_COREDLL) && !defined(Py_NO_ENABLE_SHARED)
316 # define Py_ENABLE_SHARED 1
321 #define HAVE_DECLSPEC_DLL
325 # ifndef Py_BUILD_CORE
326 # if defined(_MSC_VER)
330 # if defined(_DEBUG) && defined(KPYTHON_DEBUG_PYTHON)
331 # pragma comment(lib,"python27_d.lib")
333 # pragma comment(lib,"python27.lib")
339 #if defined(MS_WIN64)
343 # define PLATFORM "win32"
344 # define SIZEOF_VOID_P 8
345 # define SIZEOF_TIME_T 8
346 # define SIZEOF_OFF_T 4
347 # define SIZEOF_FPOS_T 8
348 # define SIZEOF_HKEY 8
349 # define SIZEOF_SIZE_T 8
355 # define HAVE_LARGEFILE_SUPPORT
356 #elif defined(MS_WIN32)
357 # define PLATFORM "win32"
358 # define HAVE_LARGEFILE_SUPPORT
359 # define SIZEOF_VOID_P 4
360 # define SIZEOF_OFF_T 4
361 # define SIZEOF_FPOS_T 8
362 # define SIZEOF_HKEY 4
363 # define SIZEOF_SIZE_T 4
365 # if defined(_MSC_VER) && _MSC_VER >= 1400
366 # define SIZEOF_TIME_T 8
368 # define SIZEOF_TIME_T 4
372 #if defined(_DEBUG) && defined (KPYTHON_DEBUG_PYTHON)
379 #define SIZEOF_SHORT 2
381 #define SIZEOF_LONG 4
382 #define SIZEOF_LONG_LONG 8
383 #define SIZEOF_DOUBLE 8
384 #define SIZEOF_FLOAT 4
390 #if defined(_MSC_VER)
392 #define HAVE_UINTPTR_T 1
393 #define HAVE_INTPTR_T 1
396 #define Py_LL(x) x##I64
406 #define HAVE_UINT32_T 1
407 #define PY_UINT32_T unsigned int
408 #elif SIZEOF_LONG == 4
409 #define HAVE_UINT32_T 1
410 #define PY_UINT32_T unsigned long
415 #if SIZEOF_LONG_LONG == 8
416 #define HAVE_UINT64_T 1
417 #define PY_UINT64_T unsigned PY_LONG_LONG
423 #define HAVE_INT32_T 1
424 #define PY_INT32_T int
425 #elif SIZEOF_LONG == 4
426 #define HAVE_INT32_T 1
427 #define PY_INT32_T long
432 #if SIZEOF_LONG_LONG == 8
433 #define HAVE_INT64_T 1
434 #define PY_INT64_T PY_LONG_LONG
441 #define HAVE_COPYSIGN 1
444 #define HAVE_DECL_ISINF 1
447 #define HAVE_DECL_ISNAN 1
461 #define HAVE_CONIO_H 1
466 #define HAVE_DIRECT_H 1
506 #define RETSIGTYPE void
512 #define STDC_HEADERS 1
545 #define HAVE_PROTOTYPES
552 #define WITH_DOC_STRINGS 1
561 #define Py_USING_UNICODE
565 #define Py_UNICODE_SIZE 2
568 #define WITH_PYMALLOC 1
574 #define HAVE_DYNAMIC_LOADING
582 #define HAVE_GETPEERNAME
648 #define HAVE_WCSCOLL 1
652 #define HAVE_ZLIB_COPY 1
659 #define HAVE_ERRNO_H 1
664 #define HAVE_FCNTL_H 1
669 #define HAVE_PROCESS_H 1
674 #define HAVE_SIGNAL_H 1
678 #define HAVE_STDARG_PROTOTYPES
681 #define HAVE_STDDEF_H 1
694 #define HAVE_SYS_STAT_H 1
705 #define HAVE_SYS_TYPES_H 1
727 #define HAVE_WCHAR_H 1
736 #define HAVE_LIBNSL 1
742 #define HAVE_LIBSOCKET 1
758 #define Py_SOCKET_FD_CAN_BE_GE_FD_SETSIZE
762 #define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1