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