xref: /PHP-7.4/win32/build/config.w32.h.in (revision 15efb96d)
105b9b20eSWez Furlong/*
205b9b20eSWez Furlong	Build Configuration Template for Win32.
305b9b20eSWez Furlong*/
405b9b20eSWez Furlong
51e820ecaSPierre Joye/* Define the minimum supported version */
649e4959aSKalle Sommer Nielsen#undef _WIN32_WINNT
749e4959aSKalle Sommer Nielsen#undef NTDDI_VERSION
8d5a3838cSAnatol Belski#define _WIN32_WINNT 0x0601
9d5a3838cSAnatol Belski#define NTDDI_VERSION 0x06010000
101e820ecaSPierre Joye
1105b9b20eSWez Furlong/* Default PHP / PEAR directories */
12*15efb96dSChristoph M. Becker#define PHP_CONFIG_FILE_PATH ""
1305b9b20eSWez Furlong#define CONFIGURATION_FILE_PATH "php.ini"
1405b9b20eSWez Furlong#define PEAR_INSTALLDIR "@PREFIX@\\pear"
1505b9b20eSWez Furlong#define PHP_BINDIR "@PREFIX@"
1605b9b20eSWez Furlong#define PHP_DATADIR "@PREFIX@"
172764586cSAnatol Belski#define PHP_EXTENSION_DIR "@PREFIX@\\ext"
1805b9b20eSWez Furlong#define PHP_INCLUDE_PATH	".;@PREFIX@\\pear"
1905b9b20eSWez Furlong#define PHP_LIBDIR "@PREFIX@"
2005b9b20eSWez Furlong#define PHP_LOCALSTATEDIR "@PREFIX@"
2105b9b20eSWez Furlong#define PHP_PREFIX "@PREFIX@"
2205b9b20eSWez Furlong#define PHP_SYSCONFDIR "@PREFIX@"
2305b9b20eSWez Furlong
2405b9b20eSWez Furlong/* PHP Runtime Configuration */
2505b9b20eSWez Furlong#define PHP_URL_FOPEN 1
2605b9b20eSWez Furlong#define USE_CONFIG_FILE 1
2705b9b20eSWez Furlong#define DEFAULT_SHORT_OPEN_TAG "1"
2805b9b20eSWez Furlong
2905b9b20eSWez Furlong/* Platform-Specific Configuration. Should not be changed. */
3005b9b20eSWez Furlong#define PHP_SIGCHILD 0
3105b9b20eSWez Furlong#define HAVE_GETSERVBYNAME 1
3205b9b20eSWez Furlong#define HAVE_GETSERVBYPORT 1
3305b9b20eSWez Furlong#define HAVE_GETPROTOBYNAME 1
3405b9b20eSWez Furlong#define HAVE_GETPROTOBYNUMBER 1
3505b9b20eSWez Furlong#define HAVE_GETHOSTNAME 1
36e266d17aSPierre Joye#define STDIN_FILENO 0
3705b9b20eSWez Furlong#define STDOUT_FILENO 1
3805b9b20eSWez Furlong#define STDERR_FILENO 2
3905b9b20eSWez Furlong#define HAVE_ERRMSG_H 0
4005b9b20eSWez Furlong#undef HAVE_ADABAS
4105b9b20eSWez Furlong#undef HAVE_SOLID
4205b9b20eSWez Furlong#undef HAVE_SYMLINK
4305b9b20eSWez Furlong
4405b9b20eSWez Furlong/* its in win32/time.c */
4505b9b20eSWez Furlong#define HAVE_USLEEP 1
4605b9b20eSWez Furlong#define HAVE_NANOSLEEP 1
4705b9b20eSWez Furlong#define PHP_SLEEP_NON_VOID 1
48274dad3bSPierre Joye
4972245759SPierre Joye#define HAVE_GETCWD 1
5005b9b20eSWez Furlong#define NEED_ISBLANK 1
51540242dcSIlia Alshanetsky#define DISCARD_PATH 0
5205b9b20eSWez Furlong#undef HAVE_SETITIMER
5305b9b20eSWez Furlong#undef HAVE_SIGSETJMP
5405b9b20eSWez Furlong#undef HAVE_IODBC
5505b9b20eSWez Furlong#define HAVE_LIBDL 1
5605b9b20eSWez Furlong#define HAVE_GETTIMEOFDAY 1
5710afe5d9SRasmus Lerdorf#define HAVE_PUTENV 1
5805b9b20eSWez Furlong#define HAVE_TZSET 1
5905b9b20eSWez Furlong#undef HAVE_FLOCK
6005b9b20eSWez Furlong#define HAVE_ALLOCA 1
6105b9b20eSWez Furlong#undef HAVE_SYS_TIME_H
6205b9b20eSWez Furlong#undef HAVE_STRUCT_STAT_ST_BLKSIZE
6305b9b20eSWez Furlong#undef HAVE_STRUCT_STAT_ST_BLOCKS
6405b9b20eSWez Furlong#define HAVE_STRUCT_STAT_ST_RDEV 1
6505b9b20eSWez Furlong#define REGEX 1
6605b9b20eSWez Furlong#define HSREGEX 1
6705b9b20eSWez Furlong#define HAVE_GETLOGIN 1
6805b9b20eSWez Furlong#define HAVE_MEMMOVE 1
69d2184efbSPeter Kokot#define HAVE_REGCOMP 1
7005b9b20eSWez Furlong#define HAVE_LOCALE_H 1
71d2184efbSPeter Kokot#define HAVE_SHUTDOWN 1
7205b9b20eSWez Furlong#define HAVE_STRCASECMP 1
7305b9b20eSWez Furlong#define HAVE_UTIME 1
7405b9b20eSWez Furlong#undef HAVE_DIRENT_H
7505b9b20eSWez Furlong#define HAVE_FCNTL_H 1
7605b9b20eSWez Furlong#define HAVE_GRP_H 0
7705b9b20eSWez Furlong#undef HAVE_PWD_H
7805b9b20eSWez Furlong#undef HAVE_SYS_FILE_H
7905b9b20eSWez Furlong#undef HAVE_SYS_SOCKET_H
8005b9b20eSWez Furlong#undef HAVE_SYS_WAIT_H
8105b9b20eSWez Furlong#define HAVE_SYSLOG_H 1
8205b9b20eSWez Furlong#undef HAVE_UNISTD_H
8305b9b20eSWez Furlong#define HAVE_SYS_TYPES_H 1
8405b9b20eSWez Furlong#undef HAVE_ALLOCA_H
8505b9b20eSWez Furlong#undef HAVE_KILL
8605b9b20eSWez Furlong#define HAVE_GETPID 1
8705b9b20eSWez Furlong#define HAVE_LIBM 1
8805b9b20eSWez Furlong#undef HAVE_RINT
8905b9b20eSWez Furlong#define SIZEOF_SHORT 2
9005b9b20eSWez Furlong/* int and long are still 32bit in 64bit compiles */
9105b9b20eSWez Furlong#define SIZEOF_INT 4
9205b9b20eSWez Furlong#define SIZEOF_LONG 4
9305b9b20eSWez Furlong/* MSVC.6/NET don't allow 'long long' or know 'intmax_t' */
9405b9b20eSWez Furlong#define SIZEOF_LONG_LONG 8 /* defined as __int64 */
9505b9b20eSWez Furlong#define SIZEOF_INTMAX_T 0
9605b9b20eSWez Furlong#define ssize_t SSIZE_T
9705b9b20eSWez Furlong#ifdef _WIN64
9805b9b20eSWez Furlong# define SIZEOF_SIZE_T 8
9905b9b20eSWez Furlong# define SIZEOF_PTRDIFF_T 8
10005b9b20eSWez Furlong#else
10105b9b20eSWez Furlong# define SIZEOF_SIZE_T 4
10205b9b20eSWez Furlong# define SIZEOF_PTRDIFF_T 4
1039fd2b6deSDmitry Stogov#endif
10405b9b20eSWez Furlong#define SIZEOF_OFF_T 4
10505b9b20eSWez Furlong#define HAVE_FNMATCH
10605b9b20eSWez Furlong#define HAVE_GLOB
10705b9b20eSWez Furlong#define PHP_SHLIB_SUFFIX "dll"
10805b9b20eSWez Furlong#define PHP_SHLIB_EXT_PREFIX "php_"
10905b9b20eSWez Furlong#define HAVE_SQLDATASOURCES
1109d6e4964SDmitry Stogov
1119d6e4964SDmitry Stogov/* Win32 supports socketpair by the emulation in win32/sockets.c */
1129d6e4964SDmitry Stogov#define HAVE_SOCKETPAIR 1
1139d6e4964SDmitry Stogov#define HAVE_SOCKLEN_T 1
1149d6e4964SDmitry Stogov
11505b9b20eSWez Furlong/* Win32 support proc_open */
11605b9b20eSWez Furlong#define PHP_CAN_SUPPORT_PROC_OPEN 1
11705b9b20eSWez Furlong
11805b9b20eSWez Furlong/* inet_ntop() / inet_pton() */
1191cfcdf66SMarcus Boerger#define HAVE_INET_PTON 1
12005b9b20eSWez Furlong#define HAVE_INET_NTOP 1
12105b9b20eSWez Furlong
12205b9b20eSWez Furlong#define HAVE_MBLEN
12305b9b20eSWez Furlong
12405b9b20eSWez Furlong#undef HAVE_ATOF_ACCEPTS_NAN
1255e33a09fSDerick Rethans#undef HAVE_ATOF_ACCEPTS_INF
12605b9b20eSWez Furlong#define HAVE_HUGE_VAL_NAN 0
12705b9b20eSWez Furlong
12805b9b20eSWez Furlong/* vs.net 2005 has a 64-bit time_t.  This will likely break
12905b9b20eSWez Furlong * 3rdParty libs that were built with older compilers; switch
13005b9b20eSWez Furlong * back to 32-bit */
13105b9b20eSWez Furlong#ifndef _WIN64
13205b9b20eSWez Furlong# define _USE_32BIT_TIME_T 1
13305b9b20eSWez Furlong#endif
13405b9b20eSWez Furlong
135f8aff4adSPierre Joye#define _REENTRANT 1
13605b9b20eSWez Furlong#define HAVE_MBRLEN 1
13705b9b20eSWez Furlong#define HAVE_MBSTATE_T 1
1389ad0d0caSAnatol Belski
13905b9b20eSWez Furlong#define HAVE_HUGE_VAL_INF 1
14005b9b20eSWez Furlong
14105b9b20eSWez Furlong#define HAVE_GETRUSAGE
14205b9b20eSWez Furlong
14305b9b20eSWez Furlong#define HAVE_FTOK 1
14473b17408SKalle Sommer Nielsen
14573b17408SKalle Sommer Nielsen#define HAVE_NICE
14610bf149aSPierre Joye
14773b17408SKalle Sommer Nielsen#ifdef __clang__
14805b9b20eSWez Furlong#define HAVE_FUNC_ATTRIBUTE_TARGET 1
14905b9b20eSWez Furlong#endif
15005b9b20eSWez Furlong