source: trunk/essentials/dev-lang/python/PC/pyconfig.h@ 3408

Last change on this file since 3408 was 3225, checked in by bird, 19 years ago

Python 2.5

File size: 18.5 KB
Line 
1#ifndef Py_CONFIG_H
2#define Py_CONFIG_H
3
4/* pyconfig.h. NOT Generated automatically by configure.
5
6This is a manually maintained version used for the Watcom,
7Borland and Microsoft Visual C++ compilers. It is a
8standard part of the Python distribution.
9
10WINDOWS DEFINES:
11The code specific to Windows should be wrapped around one of
12the following #defines
13
14MS_WIN64 - Code specific to the MS Win64 API
15MS_WIN32 - Code specific to the MS Win32 (and Win64) API (obsolete, this covers all supported APIs)
16MS_WINDOWS - Code specific to Windows, but all versions.
17MS_WINCE - Code specific to Windows CE
18Py_ENABLE_SHARED - Code if the Python core is built as a DLL.
19
20Also note that neither "_M_IX86" or "_MSC_VER" should be used for
21any purpose other than "Windows Intel x86 specific" and "Microsoft
22compiler specific". Therefore, these should be very rare.
23
24
25NOTE: The following symbols are deprecated:
26NT, WIN32, USE_DL_EXPORT, USE_DL_IMPORT, DL_EXPORT, DL_IMPORT
27MS_CORE_DLL.
28
29*/
30
31#ifdef _WIN32_WCE
32#define MS_WINCE
33#endif
34
35/* Visual Studio 2005 introduces deprecation warnings for
36 "insecure" and POSIX functions. The insecure functions should
37 be replaced by *_s versions (according to Microsoft); the
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
42#define _CRT_SECURE_NO_DEPRECATE 1
43#define _CRT_NONSTDC_NO_DEPRECATE 1
44
45/* Windows CE does not have these */
46#ifndef MS_WINCE
47#define HAVE_IO_H
48#define HAVE_SYS_UTIME_H
49#define HAVE_TEMPNAM
50#define HAVE_TMPFILE
51#define HAVE_TMPNAM
52#define HAVE_CLOCK
53#define HAVE_STRERROR
54#endif
55
56#ifdef HAVE_IO_H
57#include <io.h>
58#endif
59
60#define HAVE_HYPOT
61#define HAVE_STRFTIME
62#define DONT_HAVE_SIG_ALARM
63#define DONT_HAVE_SIG_PAUSE
64#define LONG_BIT 32
65#define WORD_BIT 32
66#define PREFIX ""
67#define EXEC_PREFIX ""
68
69#define MS_WIN32 /* only support win32 and greater. */
70#define MS_WINDOWS
71#ifndef PYTHONPATH
72# define PYTHONPATH ".\\DLLs;.\\lib;.\\lib\\plat-win;.\\lib\\lib-tk"
73#endif
74#define NT_THREADS
75#define WITH_THREAD
76#ifndef NETSCAPE_PI
77#define USE_SOCKET
78#endif
79
80#ifdef MS_WINCE
81/* Python uses GetVersion() to distinguish between
82 * Windows NT and 9x/ME where OS Unicode support is concerned.
83 * Windows CE supports Unicode in the same way as NT so we
84 * define the missing GetVersion() accordingly.
85 */
86#define GetVersion() (4)
87/* Windows CE does not support environment variables */
88#define getenv(v) (NULL)
89#define environ (NULL)
90#endif
91
92/* Compiler specific defines */
93
94/* ------------------------------------------------------------------------*/
95/* Microsoft C defines _MSC_VER */
96#ifdef _MSC_VER
97
98/* We want COMPILER to expand to a string containing _MSC_VER's *value*.
99 * This is horridly tricky, because the stringization operator only works