xref: /PHP-7.2/win32/build/config.w32.h.in (revision 9ad0d0ca)
1/*
2	Build Configuration Template for Win32.
3	$Id$
4*/
5
6/* Define the minimum supported version */
7#undef _WIN32_WINNT
8#undef NTDDI_VERSION
9#define _WIN32_WINNT 0x0601
10#define NTDDI_VERSION 0x06010000
11
12/* Default PHP / PEAR directories */
13#define PHP_CONFIG_FILE_PATH (getenv("SystemRoot")?getenv("SystemRoot"):"")
14#define CONFIGURATION_FILE_PATH "php.ini"
15#define PEAR_INSTALLDIR "@PREFIX@\\pear"
16#define PHP_BINDIR "@PREFIX@"
17#define PHP_DATADIR "@PREFIX@"
18#define PHP_EXTENSION_DIR "@PREFIX@\\ext"
19#define PHP_INCLUDE_PATH	".;@PREFIX@\\pear"
20#define PHP_LIBDIR "@PREFIX@"
21#define PHP_LOCALSTATEDIR "@PREFIX@"
22#define PHP_PREFIX "@PREFIX@"
23#define PHP_SYSCONFDIR "@PREFIX@"
24
25/* PHP Runtime Configuration */
26#define PHP_URL_FOPEN 1
27#define USE_CONFIG_FILE 1
28#define DEFAULT_SHORT_OPEN_TAG "1"
29
30/* Platform-Specific Configuration. Should not be changed. */
31#define PHP_SIGCHILD 0
32#define HAVE_LIBBIND 1
33#define HAVE_GETSERVBYNAME 1
34#define HAVE_GETSERVBYPORT 1
35#define HAVE_GETPROTOBYNAME 1
36#define HAVE_GETPROTOBYNUMBER 1
37#define HAVE_GETHOSTNAME 1
38#define STDIN_FILENO 0
39#define STDOUT_FILENO 1
40#define STDERR_FILENO 2
41#define HAVE_ERRMSG_H 0
42#undef HAVE_ADABAS
43#undef HAVE_SOLID
44#undef HAVE_LINK
45#undef HAVE_SYMLINK
46
47/* its in win32/time.c */
48#define HAVE_USLEEP 1
49#define HAVE_NANOSLEEP 1
50#define PHP_SLEEP_NON_VOID 1
51
52#define HAVE_GETHOSTNAME 1
53#define HAVE_GETCWD 1
54#define HAVE_POSIX_READDIR_R 1
55#define NEED_ISBLANK 1
56#define DISCARD_PATH 0
57#undef HAVE_SETITIMER
58#undef HAVE_SIGSETJMP
59#undef HAVE_IODBC
60#define HAVE_LIBDL 1
61#define HAVE_GETTIMEOFDAY 1
62#define HAVE_PUTENV 1
63#define HAVE_LIMITS_H 1
64#define HAVE_TZSET 1
65#define HAVE_TZNAME 1
66#undef HAVE_FLOCK
67#define HAVE_ALLOCA 1
68#undef HAVE_SYS_TIME_H
69#define HAVE_SIGNAL_H 1
70#undef HAVE_ST_BLKSIZE
71#undef HAVE_ST_BLOCKS
72#define HAVE_ST_RDEV 1
73#define HAVE_UTIME_NULL 1
74#define HAVE_VPRINTF 1
75#define STDC_HEADERS 1
76#define REGEX 1
77#define HSREGEX 1
78#define HAVE_GCVT 1
79#define HAVE_GETLOGIN 1
80#define HAVE_GETTIMEOFDAY 1
81#define HAVE_MEMCPY 1
82#define HAVE_MEMMOVE 1
83#define HAVE_PUTENV 1
84#define HAVE_REGCOMP 1
85#define HAVE_SETLOCALE 1
86#define HAVE_LOCALECONV 1
87#define HAVE_LOCALE_H 1
88#ifndef HAVE_LIBBIND
89# define HAVE_SETVBUF 1
90#endif
91#define HAVE_SHUTDOWN 1
92#define HAVE_SNPRINTF 1
93#define HAVE_VSNPRINTF 1
94#define HAVE_STRCASECMP 1
95#define HAVE_STRDUP 1
96#define HAVE_STRERROR 1
97#define HAVE_STRSTR 1
98#define HAVE_TEMPNAM 1
99#define HAVE_UTIME 1
100#undef HAVE_DIRENT_H
101#define HAVE_ASSERT_H 1
102#define HAVE_FCNTL_H 1
103#define HAVE_GRP_H 0
104#undef HAVE_PWD_H
105#define HAVE_STRING_H 1
106#undef HAVE_SYS_FILE_H
107#undef HAVE_SYS_SOCKET_H
108#undef HAVE_SYS_WAIT_H
109#define HAVE_SYSLOG_H 1
110#undef HAVE_UNISTD_H
111#define HAVE_SYS_TYPES_H 1
112#define HAVE_STDARG_H 1
113#undef HAVE_ALLOCA_H
114#undef HAVE_KILL
115#define HAVE_GETPID 1
116#define HAVE_LIBM 1
117#define HAVE_CUSERID 0
118#undef HAVE_RINT
119#define HAVE_STRFTIME 1
120#define SIZEOF_SHORT 2
121/* int and long are stll 32bit in 64bit compiles */
122#define SIZEOF_INT 4
123#define SIZEOF_LONG 4
124/* MSVC.6/NET don't allow 'long long' or know 'intmax_t' */
125#define SIZEOF_LONG_LONG_INT 0
126#define SIZEOF_LONG_LONG 8 /* defined as __int64 */
127#define SIZEOF_INTMAX_T 0
128#define ssize_t SSIZE_T
129#ifdef _WIN64
130# define SIZEOF_SIZE_T 8
131# define SIZEOF_PTRDIFF_T 8
132#else
133# define SIZEOF_SIZE_T 4
134# define SIZEOF_PTRDIFF_T 4
135#endif
136#define HAVE_FNMATCH
137#define HAVE_GLOB
138#define PHP_SHLIB_SUFFIX "dll"
139#define PHP_SHLIB_EXT_PREFIX "php_"
140#define HAVE_SQLDATASOURCES
141
142/* Win32 supports strcoll */
143#define HAVE_STRCOLL 1
144
145/* Win32 supports socketpair by the emulation in win32/sockets.c */
146#define HAVE_SOCKETPAIR 1
147#define HAVE_SOCKLEN_T 1
148
149/* Win32 support proc_open */
150#define PHP_CAN_SUPPORT_PROC_OPEN 1
151
152/* inet_ntop() / inet_pton() */
153#define HAVE_INET_PTON 1
154#define HAVE_INET_NTOP 1
155
156#define HAVE_MBLEN
157
158#undef HAVE_ATOF_ACCEPTS_NAN
159#undef HAVE_ATOF_ACCEPTS_INF
160#define HAVE_HUGE_VAL_NAN 0
161
162/* vs.net 2005 has a 64-bit time_t.  This will likely break
163 * 3rdParty libs that were built with older compilers; switch
164 * back to 32-bit */
165#ifndef _WIN64
166# define _USE_32BIT_TIME_T 1
167#endif
168#define HAVE_STDLIB_H 1
169
170#define _REENTRANT 1
171#define HAVE_MBRLEN 1
172#define HAVE_MBSTATE_T 1
173
174#define HAVE_HUGE_VAL_INF 1
175
176#define HAVE_GETRUSAGE
177
178#define HAVE_FTOK 1
179
180#define HAVE_NICE
181