xref: /php-src/win32/build/config.w32.h.in (revision 2f6a2107)
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 0x06010000
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_DATADIR "@PREFIX@"
16#define PHP_EXTENSION_DIR "@PREFIX@\\ext"
17#define PHP_INCLUDE_PATH	".;@PREFIX@\\pear"
18#define PHP_LIBDIR "@PREFIX@"
19#define PHP_LOCALSTATEDIR "@PREFIX@"
20#define PHP_PREFIX "@PREFIX@"
21#define PHP_SYSCONFDIR "@PREFIX@"
22
23/* PHP Runtime Configuration */
24#define DEFAULT_SHORT_OPEN_TAG "1"
25
26/* Platform-Specific Configuration. Should not be changed. */
27/* Alignment for Zend memory allocator */
28#define ZEND_MM_ALIGNMENT (size_t)8
29#define ZEND_MM_ALIGNMENT_LOG2 (size_t)3
30#define ZEND_MM_NEED_EIGHT_BYTE_REALIGNMENT 0
31#define PHP_SIGCHILD 0
32#define HAVE_GETSERVBYNAME 1
33#define HAVE_GETSERVBYPORT 1
34#define HAVE_GETPROTOBYNAME 1
35#define HAVE_GETPROTOBYNUMBER 1
36#define HAVE_GETHOSTNAME 1
37#define STDIN_FILENO 0
38#define STDOUT_FILENO 1
39#define STDERR_FILENO 2
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
48#define HAVE_GETCWD 1
49#undef HAVE_SETITIMER
50#undef HAVE_SIGSETJMP
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#define HAVE_GRP_H 0
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#define HAVE_SQLDATASOURCES
99
100/* Win32 supports socketpair by the emulation in win32/sockets.c */
101#define HAVE_SOCKETPAIR 1
102#define HAVE_SOCKLEN_T 1
103
104/* Win32 support proc_open */
105#define PHP_CAN_SUPPORT_PROC_OPEN 1
106
107/* vs.net 2005 has a 64-bit time_t.  This will likely break
108 * 3rdParty libs that were built with older compilers; switch
109 * back to 32-bit */
110#ifndef _WIN64
111# define _USE_32BIT_TIME_T 1
112#endif
113
114#define _REENTRANT 1
115
116#define HAVE_GETRUSAGE
117
118#define HAVE_FTOK 1
119
120#define HAVE_NICE
121
122#ifdef __clang__
123#define HAVE_FUNC_ATTRIBUTE_TARGET 1
124#endif
125
126#define HAVE_GETADDRINFO 1
127