2002-02-17 01:23:30 -04:00
|
|
|
#ifndef Py_CONFIG_H
|
|
|
|
#define Py_CONFIG_H
|
|
|
|
|
2003-04-21 11:28:01 -03:00
|
|
|
/* config.h.
|
|
|
|
* At some time in the past, generated automatically by/from configure.
|
|
|
|
* now maintained manually.
|
|
|
|
*/
|
2002-02-17 01:23:30 -04:00
|
|
|
|
2003-04-21 11:28:01 -03:00
|
|
|
/* build environment */
|
2002-02-17 01:23:30 -04:00
|
|
|
#define PLATFORM "os2emx"
|
|
|
|
#define COMPILER "[EMX GCC " __VERSION__ "]"
|
2003-04-21 11:28:01 -03:00
|
|
|
#define PYOS_OS2 1
|
|
|
|
#define PYCC_GCC 1
|
|
|
|
|
|
|
|
/* default location(s) */
|
|
|
|
#ifndef PREFIX
|
|
|
|
#define PREFIX ""
|
|
|
|
#endif
|
|
|
|
#ifndef PYTHONPATH
|
|
|
|
#define PYTHONPATH "./Lib;./Lib/plat-" PLATFORM \
|
|
|
|
";./Lib/lib-dynload;./Lib/site-packages"
|
|
|
|
#endif
|
2002-02-17 01:23:30 -04:00
|
|
|
|
|
|
|
/* Debugging */
|
|
|
|
#ifndef Py_DEBUG
|
|
|
|
/*#define Py_DEBUG 1*/
|
|
|
|
#endif
|
|
|
|
|
2003-07-13 10:41:59 -03:00
|
|
|
/* if building an extension or wrapper executable,
|
|
|
|
* mark Python API symbols "extern" so that symbols
|
|
|
|
* imported from the Python core DLL aren't duplicated.
|
|
|
|
*/
|
|
|
|
#ifdef Py_BUILD_CORE
|
2003-07-16 10:31:11 -03:00
|
|
|
# define PyAPI_FUNC(RTYPE) RTYPE
|
2003-07-13 10:41:59 -03:00
|
|
|
#else
|
2003-07-16 10:31:11 -03:00
|
|
|
# define PyAPI_FUNC(RTYPE) extern RTYPE
|
2003-07-13 10:41:59 -03:00
|
|
|
#endif
|
2003-07-16 10:31:11 -03:00
|
|
|
#define PyAPI_DATA(RTYPE) extern RTYPE
|
|
|
|
#define PyMODINIT_FUNC void
|
2003-07-13 10:41:59 -03:00
|
|
|
|
2002-02-17 01:23:30 -04:00
|
|
|
/* Use OS/2 flavour of threads */
|
2003-04-21 11:28:01 -03:00
|
|
|
#define WITH_THREAD 1
|
|
|
|
#define OS2_THREADS 1
|
2002-12-31 07:24:43 -04:00
|
|
|
|
2002-02-17 01:23:30 -04:00
|
|
|
/* We want sockets */
|
2003-04-21 11:28:01 -03:00
|
|
|
#define TCPIPV4 1
|
|
|
|
#define USE_SOCKET 1
|
|
|
|
#define socklen_t int
|
|
|
|
|
|
|
|
/* enable the Python object allocator */
|
|
|
|
#define WITH_PYMALLOC 1
|
2002-02-17 01:23:30 -04:00
|
|
|
|
|
|
|
/* enable the GC module */
|
|
|
|
#define WITH_CYCLE_GC 1
|
|
|
|
|
2002-06-09 10:41:37 -03:00
|
|
|
/* Define if you want documentation strings in extension modules */
|
|
|
|
#define WITH_DOC_STRINGS 1
|
|
|
|
|
2002-02-17 01:23:30 -04:00
|
|
|
/* Unicode related */
|
2003-04-21 11:28:01 -03:00
|
|
|
#define Py_USING_UNICODE 1
|
|
|
|
#define PY_UNICODE_TYPE wchar_t
|
2002-02-17 01:23:30 -04:00
|
|
|
#define Py_UNICODE_SIZE SIZEOF_SHORT
|
|
|
|
|
2003-04-21 11:28:01 -03:00
|
|
|
/* system capabilities */
|
2002-02-17 01:23:30 -04:00
|
|
|
#define HAVE_TTYNAME 1
|
|
|
|
#define HAVE_WAIT 1
|
|
|
|
#define HAVE_GETEGID 1
|
|
|
|
#define HAVE_GETEUID 1
|
|
|
|
#define HAVE_GETGID 1
|
|
|
|
#define HAVE_GETPPID 1
|
|
|
|
#define HAVE_GETUID 1
|
|
|
|
#define HAVE_OPENDIR 1
|
|
|
|
#define HAVE_PIPE 1
|
|
|
|
#define HAVE_POPEN 1
|
|
|
|
#define HAVE_SYSTEM 1
|
|
|
|
#define HAVE_TTYNAME 1
|
|
|
|
#define HAVE_DYNAMIC_LOADING 1
|
|
|
|
|
|
|
|
/* if port of GDBM installed, it includes NDBM emulation */
|
2003-04-21 11:28:01 -03:00
|
|
|
#define HAVE_NDBM_H 1
|
2002-02-17 01:23:30 -04:00
|
|
|
|
|
|
|
/* need this for spawnv code in posixmodule (cloned from WIN32 def'n) */
|
|
|
|
typedef long intptr_t;
|
|
|
|
|
2003-04-21 11:28:01 -03:00
|
|
|
/* we don't have tm_zone but do have the external array tzname */
|
2002-02-17 01:23:30 -04:00
|
|
|
#define HAVE_TZNAME 1
|
|
|
|
|
2003-04-21 11:28:01 -03:00
|
|
|
/* Define as the return type of signal handlers (int or void). */
|
2002-02-17 01:23:30 -04:00
|
|
|
#define RETSIGTYPE void
|
|
|
|
|
2003-04-21 11:28:01 -03:00
|
|
|
/* Define if you have the ANSI C header files. */
|
2002-02-17 01:23:30 -04:00
|
|
|
#define STDC_HEADERS 1
|
|
|
|
|
2003-04-21 11:28:01 -03:00
|
|
|
/* Define if you can safely include both <sys/time.h> and <time.h>. */
|
2002-02-17 01:23:30 -04:00
|
|
|
#define TIME_WITH_SYS_TIME 1
|
|
|
|
|
2003-04-21 11:28:01 -03:00
|
|
|
/* Define this if you have the type long long. */
|
2002-02-17 01:23:30 -04:00
|
|
|
#define HAVE_LONG_LONG 1
|
|
|
|
|
2003-04-21 11:28:01 -03:00
|
|
|
/* Define if your compiler supports function prototypes. */
|
2002-02-17 01:23:30 -04:00
|
|
|
#define HAVE_PROTOTYPES 1
|
|
|
|
|
|
|
|
/* Define if your compiler supports variable length function prototypes
|
2003-04-21 11:28:01 -03:00
|
|
|
* (e.g. void fprintf(FILE *, char *, ...);) *and* <stdarg.h>.
|
|
|
|
*/
|
2002-02-17 01:23:30 -04:00
|
|
|
#define HAVE_STDARG_PROTOTYPES 1
|
|
|
|
|
2003-04-21 11:28:01 -03:00
|
|
|
/* Define if malloc(0) returns a NULL pointer. */
|
2002-02-17 01:23:30 -04:00
|
|
|
#define MALLOC_ZERO_RETURNS_NULL 1
|
|
|
|
|
2003-04-21 11:28:01 -03:00
|
|
|
/* Define to force use of thread-safe errno, h_errno, and other functions. */
|
2002-02-17 01:23:30 -04:00
|
|
|
#define _REENTRANT 1
|
|
|
|
|
2003-04-21 11:28:01 -03:00
|
|
|
/* Define if you can safely include both <sys/select.h> and <sys/time.h>
|
|
|
|
* (which you can't on SCO ODT 3.0).
|
|
|
|
*/
|
2002-02-17 01:23:30 -04:00
|
|
|
#define SYS_SELECT_WITH_SYS_TIME 1
|
|
|
|
|
|
|
|
/* The number of bytes in an off_t. */
|
|
|
|
#define SIZEOF_OFF_T 4
|
|
|
|
|
|
|
|
/* The number of bytes in an time_t. */
|
|
|
|
#define SIZEOF_TIME_T 4
|
|
|
|
|
2003-04-21 11:28:01 -03:00
|
|
|
/* The number of bytes in a short. */
|
2002-02-17 01:23:30 -04:00
|
|
|
#define SIZEOF_SHORT 2
|
|
|
|
|
2003-04-21 11:28:01 -03:00
|
|
|
/* The number of bytes in a int. */
|
2002-02-17 01:23:30 -04:00
|
|
|
#define SIZEOF_INT 4
|
|
|
|
|
2003-04-21 11:28:01 -03:00
|
|
|
/* The number of bytes in a long. */
|
2002-02-17 01:23:30 -04:00
|
|
|
#define SIZEOF_LONG 4
|
|
|
|
|
2003-04-21 11:28:01 -03:00
|
|
|
/* The number of bytes in a long long. */
|
2002-02-17 01:23:30 -04:00
|
|
|
#define SIZEOF_LONG_LONG 8
|
|
|
|
|
2003-04-21 11:28:01 -03:00
|
|
|
/* The number of bytes in a void *. */
|
2002-02-17 01:23:30 -04:00
|
|
|
#define SIZEOF_VOID_P 4
|
|
|
|
|
2003-04-21 11:28:01 -03:00
|
|
|
/* Define if you have the alarm function. */
|
2002-02-17 01:23:30 -04:00
|
|
|
#define HAVE_ALARM 1
|
|
|
|
|
2003-04-21 11:28:01 -03:00
|
|
|
/* Define if you have the clock function. */
|
2002-02-17 01:23:30 -04:00
|
|
|
#define HAVE_CLOCK 1
|
|
|
|
|
2003-04-21 11:28:01 -03:00
|
|
|
/* Define if you have the dup2 function. */
|
2002-02-17 01:23:30 -04:00
|
|
|
#define HAVE_DUP2 1
|
|
|
|
|
2003-04-21 11:28:01 -03:00
|
|
|
/* Define if you have the execv function. */
|
2002-02-17 01:23:30 -04:00
|
|
|
#define HAVE_EXECV 1
|
|
|
|
|
2003-04-21 11:28:01 -03:00
|
|
|
/* Define if you have the spawnv function. */
|
2002-02-17 01:23:30 -04:00
|
|
|
#define HAVE_SPAWNV 1
|
|
|
|
|
2003-04-21 11:28:01 -03:00
|
|
|
/* Define if you have the flock function. */
|
2002-02-17 01:23:30 -04:00
|
|
|
#define HAVE_FLOCK 1
|
|
|
|
|
2003-04-21 11:28:01 -03:00
|
|
|
/* Define if you have the fork function. */
|
2002-02-17 01:23:30 -04:00
|
|
|
#define HAVE_FORK 1
|
|
|
|
|
2003-04-21 11:28:01 -03:00
|
|
|
/* Define if you have the fsync function. */
|
2002-02-17 01:23:30 -04:00
|
|
|
#define HAVE_FSYNC 1
|
|
|
|
|
2003-04-21 11:28:01 -03:00
|
|
|
/* Define if you have the ftime function. */
|
2002-02-17 01:23:30 -04:00
|
|
|
#define HAVE_FTIME 1
|
|
|
|
|
2003-04-21 11:28:01 -03:00
|
|
|
/* Define if you have the ftruncate function. */
|
2002-02-17 01:23:30 -04:00
|
|
|
#define HAVE_FTRUNCATE 1
|
|
|
|
|
2003-04-21 11:28:01 -03:00
|
|
|
/* Define if you have the getcwd function. */
|
2002-02-17 01:23:30 -04:00
|
|
|
#define HAVE_GETCWD 1
|
|
|
|
|
2003-04-21 11:28:01 -03:00
|
|
|
/* Define if you have the getpeername function. */
|
2002-02-17 01:23:30 -04:00
|
|
|
#define HAVE_GETPEERNAME 1
|
|
|
|
|
2003-04-21 11:28:01 -03:00
|
|
|
/* Define if you have the getpgrp function. */
|
2002-02-17 01:23:30 -04:00
|
|
|
#define HAVE_GETPGRP 1
|
|
|
|
|
2003-04-21 11:28:01 -03:00
|
|
|
/* Define if you have the getpid function. */
|
2002-02-17 01:23:30 -04:00
|
|
|
#define HAVE_GETPID 1
|
|
|
|
|
2003-04-21 11:28:01 -03:00
|
|
|
/* Define if you have the getpwent function. */
|
2002-02-17 01:23:30 -04:00
|
|
|
#define HAVE_GETPWENT 1
|
|
|
|
|
2003-04-21 11:28:01 -03:00
|
|
|
/* Define if you have the gettimeofday function. */
|
2002-02-17 01:23:30 -04:00
|
|
|
#define HAVE_GETTIMEOFDAY 1
|
|
|
|
|
2003-04-21 11:28:01 -03:00
|
|
|
/* Define if you have the getwd function. */
|
2002-02-17 01:23:30 -04:00
|
|
|
#define HAVE_GETWD 1
|
|
|
|
|
2003-04-21 11:28:01 -03:00
|
|
|
/* Define if you have the hypot function. */
|
2002-02-17 01:23:30 -04:00
|
|
|
#define HAVE_HYPOT 1
|
|
|
|
|
2003-04-21 11:28:01 -03:00
|
|
|
/* Define if you have the kill function. */
|
2002-02-17 01:23:30 -04:00
|
|
|
#define HAVE_KILL 1
|
|
|
|
|
2003-04-21 11:28:01 -03:00
|
|
|
/* Define if you have the memmove function. */
|
2002-02-17 01:23:30 -04:00
|
|
|
#define HAVE_MEMMOVE 1
|
|
|
|
|
2003-04-21 11:28:01 -03:00
|
|
|
/* Define if you have the mktime function. */
|
2002-02-17 01:23:30 -04:00
|
|
|
#define HAVE_MKTIME 1
|
|
|
|
|
2003-04-21 11:28:01 -03:00
|
|
|
/* Define if you have the pause function. */
|
2002-02-17 01:23:30 -04:00
|
|
|
#define HAVE_PAUSE 1
|
|
|
|
|
2003-04-21 11:28:01 -03:00
|
|
|
/* Define if you have the putenv function. */
|
2002-02-17 01:23:30 -04:00
|
|
|
#define HAVE_PUTENV 1
|
|
|
|
|
2003-04-21 11:28:01 -03:00
|
|
|
/* Define if you have the select function. */
|
2002-02-17 01:23:30 -04:00
|
|
|
#define HAVE_SELECT 1
|
|
|
|
|
2003-04-21 11:28:01 -03:00
|
|
|
/* Define if you have the setgid function. */
|
2002-02-17 01:23:30 -04:00
|
|
|
#define HAVE_SETGID 1
|
|
|
|
|
2003-04-21 11:28:01 -03:00
|
|
|
/* Define if you have the setlocale function. */
|
2002-02-17 01:23:30 -04:00
|
|
|
#define HAVE_SETLOCALE 1
|
|
|
|
|
2003-04-21 11:28:01 -03:00
|
|
|
/* Define if you have the setpgid function. */
|
2002-02-17 01:23:30 -04:00
|
|
|
#define HAVE_SETPGID 1
|
|
|
|
|
2003-04-21 11:28:01 -03:00
|
|
|
/* Define if you have the setuid function. */
|
2002-02-17 01:23:30 -04:00
|
|
|
#define HAVE_SETUID 1
|
|
|
|
|
2003-04-21 11:28:01 -03:00
|
|
|
/* Define if you have the setvbuf function. */
|
2002-02-17 01:23:30 -04:00
|
|
|
#define HAVE_SETVBUF 1
|
|
|
|
|
2003-04-21 11:28:01 -03:00
|
|
|
/* Define if you have the sigaction function. */
|
2002-02-17 01:23:30 -04:00
|
|
|
#define HAVE_SIGACTION 1
|
|
|
|
|
2003-04-21 11:28:01 -03:00
|
|
|
/* Define if you have the strerror function. */
|
2002-02-17 01:23:30 -04:00
|
|
|
#define HAVE_STRERROR 1
|
|
|
|
|
2003-04-21 11:28:01 -03:00
|
|
|
/* Define if you have the strftime function. */
|
2002-02-17 01:23:30 -04:00
|
|
|
#define HAVE_STRFTIME 1
|
|
|
|
|
2003-04-21 11:28:01 -03:00
|
|
|
/* Define if you have the tcgetpgrp function. */
|
2002-02-17 01:23:30 -04:00
|
|
|
#define HAVE_TCGETPGRP 1
|
|
|
|
|
2003-04-21 11:28:01 -03:00
|
|
|
/* Define if you have the tcsetpgrp function. */
|
2002-02-17 01:23:30 -04:00
|
|
|
#define HAVE_TCSETPGRP 1
|
|
|
|
|
2003-06-09 05:16:59 -03:00
|
|
|
/* Define if you have the tmpfile function. */
|
|
|
|
#define HAVE_TMPFILE 1
|
|
|
|
|
2003-04-21 11:28:01 -03:00
|
|
|
/* Define if you have the times function. */
|
2002-02-17 01:23:30 -04:00
|
|
|
#define HAVE_TIMES 1
|
|
|
|
|
2003-04-21 11:28:01 -03:00
|
|
|
/* Define if you have the truncate function. */
|
2002-02-17 01:23:30 -04:00
|
|
|
#define HAVE_TRUNCATE 1
|
|
|
|
|
2003-04-21 11:28:01 -03:00
|
|
|
/* Define if you have the uname function. */
|
2002-02-17 01:23:30 -04:00
|
|
|
#define HAVE_UNAME 1
|
|
|
|
|
2003-04-21 11:28:01 -03:00
|
|
|
/* Define if you have the waitpid function. */
|
2002-02-17 01:23:30 -04:00
|
|
|
#define HAVE_WAITPID 1
|
|
|
|
|
2003-04-21 11:28:01 -03:00
|
|
|
/* Define if you have the <dirent.h> header file. */
|
2002-02-17 01:23:30 -04:00
|
|
|
#define HAVE_DIRENT_H 1
|
|
|
|
|
2003-04-21 11:28:01 -03:00
|
|
|
/* Define if you have the <fcntl.h> header file. */
|
2002-02-17 01:23:30 -04:00
|
|
|
#define HAVE_FCNTL_H 1
|
|
|
|
|
2003-04-21 11:28:01 -03:00
|
|
|
/* Define if you have the <ncurses.h> header file. */
|
2002-02-17 01:23:30 -04:00
|
|
|
#define HAVE_NCURSES_H 1
|
|
|
|
|
2003-04-21 11:28:01 -03:00
|
|
|
/* Define if you have the <sys/file.h> header file. */
|
2002-02-17 01:23:30 -04:00
|
|
|
#define HAVE_SYS_FILE_H 1
|
|
|
|
|
2003-04-21 11:28:01 -03:00
|
|
|
/* Define if you have the <sys/param.h> header file. */
|
2002-02-17 01:23:30 -04:00
|
|
|
#define HAVE_SYS_PARAM_H 1
|
|
|
|
|
2003-04-21 11:28:01 -03:00
|
|
|
/* Define if you have the <sys/select.h> header file. */
|
2002-02-17 01:23:30 -04:00
|
|
|
#define HAVE_SYS_SELECT_H 1
|
|
|
|
|
2003-04-21 11:28:01 -03:00
|
|
|
/* Define if you have the <sys/time.h> header file. */
|
2002-02-17 01:23:30 -04:00
|
|
|
#define HAVE_SYS_TIME_H 1
|
|
|
|
|
2003-04-21 11:28:01 -03:00
|
|
|
/* Define if you have the <sys/times.h> header file. */
|
2002-02-17 01:23:30 -04:00
|
|
|
#define HAVE_SYS_TIMES_H 1
|
|
|
|
|
2003-04-21 11:28:01 -03:00
|
|
|
/* Define if you have the <sys/un.h> header file. */
|
2002-02-17 01:23:30 -04:00
|
|
|
#define HAVE_SYS_UN_H 1
|
|
|
|
|
2003-04-21 11:28:01 -03:00
|
|
|
/* Define if you have the <sys/utsname.h> header file. */
|
2002-02-17 01:23:30 -04:00
|
|
|
#define HAVE_SYS_UTSNAME_H 1
|
|
|
|
|
2003-04-21 11:28:01 -03:00
|
|
|
/* Define if you have the <sys/wait.h> header file. */
|
2002-02-17 01:23:30 -04:00
|
|
|
#define HAVE_SYS_WAIT_H 1
|
|
|
|
|
2003-04-21 11:28:01 -03:00
|
|
|
/* Define if you have the <unistd.h> header file. */
|
2002-02-17 01:23:30 -04:00
|
|
|
#define HAVE_UNISTD_H 1
|
|
|
|
|
2003-04-21 11:28:01 -03:00
|
|
|
/* Define if you have the <utime.h> header file. */
|
2002-02-17 01:23:30 -04:00
|
|
|
#define HAVE_UTIME_H 1
|
|
|
|
|
2003-04-21 11:28:01 -03:00
|
|
|
/* EMX has an snprintf(). */
|
|
|
|
#define HAVE_SNPRINTF 1
|
2002-02-17 01:23:30 -04:00
|
|
|
|
|
|
|
#endif /* !Py_CONFIG_H */
|
|
|
|
|