xref: /php-src/win32/build/config.w32.h.in (revision 5bcbe8a3)
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 0x0602
9#define NTDDI_VERSION 0x06020000
10
11/* Default PHP / PEAR directories */
12#define PHP_CONFIG_FILE_PATH ""
13#define PEAR_INSTALLDIR "@PREFIX@\\pear"
14#define PHP_BINDIR "@PREFIX@"
15#define PHP_SBINDIR "@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 DEFAULT_SHORT_OPEN_TAG "1"
26
27/* Platform-Specific Configuration. Should not be changed. */
28/* Alignment for Zend memory allocator */
29#define ZEND_MM_ALIGNMENT (size_t)8
30#define ZEND_MM_ALIGNMENT_LOG2 (size_t)3
31#define ZEND_MM_NEED_EIGHT_BYTE_REALIGNMENT 0
32#define PHP_SIGCHILD 0
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#undef HAVE_ADABAS
42#undef HAVE_SOLID
43#undef HAVE_SYMLINK
44
45/* its in win32/time.c */
46#define HAVE_USLEEP 1
47#define HAVE_NANOSLEEP 1
48
49#define HAVE_GETCWD 1
50#undef HAVE_SETITIMER
51#undef HAVE_IODBC
52#define HAVE_LIBDL 1
53#define HAVE_GETTIMEOFDAY 1
54#define HAVE_PUTENV 1
55#define HAVE_TZSET 1
56#undef HAVE_FLOCK
57#define HAVE_ALLOCA 1
58#undef HAVE_SYS_TIME_H
59#undef HAVE_STRUCT_STAT_ST_BLKSIZE
60#undef HAVE_STRUCT_STAT_ST_BLOCKS
61#define HAVE_STRUCT_STAT_ST_RDEV 1
62#define HAVE_GETLOGIN 1
63#define HAVE_SHUTDOWN 1
64#define HAVE_STRCASECMP 1
65#define HAVE_UTIME 1
66#undef HAVE_DIRENT_H
67#define HAVE_FCNTL_H 1
68#undef HAVE_GRP_H
69#undef HAVE_PWD_H
70#undef HAVE_SYS_FILE_H
71#undef HAVE_SYS_SOCKET_H
72#undef HAVE_SYS_WAIT_H
73#define HAVE_SYSLOG_H 1
74#undef HAVE_UNISTD_H
75#define HAVE_SYS_TYPES_H 1
76#undef HAVE_ALLOCA_H
77#undef HAVE_KILL
78#define HAVE_GETPID 1
79/* int and long are still 32bit in 64bit compiles */
80#define SIZEOF_INT 4
81#define SIZEOF_LONG 4
82/* MSVC.6/NET don't allow 'long long' or know 'intmax_t' */
83#define SIZEOF_LONG_LONG 8 /* defined as __int64 */
84#define SIZEOF_INTMAX_T 0
85#define ssize_t SSIZE_T
86#ifdef _WIN64
87# define SIZEOF_SIZE_T 8
88# define SIZEOF_PTRDIFF_T 8
89#else
90# define SIZEOF_SIZE_T 4
91# define SIZEOF_PTRDIFF_T 4
92#endif
93#define SIZEOF_OFF_T 4
94#define HAVE_FNMATCH
95#define HAVE_GLOB
96#define PHP_SHLIB_SUFFIX "dll"
97#define PHP_SHLIB_EXT_PREFIX "php_"
98
99/* Win32 supports socketpair by the emulation in win32/sockets.c */
100#define HAVE_SOCKETPAIR 1
101#define HAVE_SOCKLEN_T 1
102
103/* Win32 support proc_open */
104#define PHP_CAN_SUPPORT_PROC_OPEN 1
105
106/* vs.net 2005 has a 64-bit time_t.  This will likely break
107 * 3rdParty libs that were built with older compilers; switch
108 * back to 32-bit */
109#ifndef _WIN64
110# define _USE_32BIT_TIME_T 1
111#endif
112
113#define _REENTRANT 1
114
115#define HAVE_GETRUSAGE
116
117#define HAVE_FTOK 1
118
119#define HAVE_NICE
120
121#ifdef __clang__
122#define HAVE_FUNC_ATTRIBUTE_TARGET 1
123#endif
124
125#define HAVE_GETADDRINFO 1
126