config.w32.h.in 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. /*
  2. Build Configuration Template for Win32.
  3. */
  4. /* Define the minimum supported version */
  5. #undef _WIN32_WINNT
  6. #undef NTDDI_VERSION
  7. #define _WIN32_WINNT 0x0601
  8. #define NTDDI_VERSION 0x06010000
  9. /* Default PHP / PEAR directories */
  10. #define PHP_CONFIG_FILE_PATH ""
  11. #define CONFIGURATION_FILE_PATH "php.ini"
  12. #define PEAR_INSTALLDIR "@PREFIX@\\pear"
  13. #define PHP_BINDIR "@PREFIX@"
  14. #define PHP_DATADIR "@PREFIX@"
  15. #define PHP_EXTENSION_DIR "@PREFIX@\\ext"
  16. #define PHP_INCLUDE_PATH ".;@PREFIX@\\pear"
  17. #define PHP_LIBDIR "@PREFIX@"
  18. #define PHP_LOCALSTATEDIR "@PREFIX@"
  19. #define PHP_PREFIX "@PREFIX@"
  20. #define PHP_SYSCONFDIR "@PREFIX@"
  21. /* PHP Runtime Configuration */
  22. #define PHP_URL_FOPEN 1
  23. #define USE_CONFIG_FILE 1
  24. #define DEFAULT_SHORT_OPEN_TAG "1"
  25. /* Platform-Specific Configuration. Should not be changed. */
  26. #define PHP_SIGCHILD 0
  27. #define HAVE_GETSERVBYNAME 1
  28. #define HAVE_GETSERVBYPORT 1
  29. #define HAVE_GETPROTOBYNAME 1
  30. #define HAVE_GETPROTOBYNUMBER 1
  31. #define HAVE_GETHOSTNAME 1
  32. #define STDIN_FILENO 0
  33. #define STDOUT_FILENO 1
  34. #define STDERR_FILENO 2
  35. #define HAVE_ERRMSG_H 0
  36. #undef HAVE_ADABAS
  37. #undef HAVE_SOLID
  38. #undef HAVE_SYMLINK
  39. /* its in win32/time.c */
  40. #define HAVE_USLEEP 1
  41. #define HAVE_NANOSLEEP 1
  42. #define HAVE_GETCWD 1
  43. #define NEED_ISBLANK 1
  44. #define DISCARD_PATH 0
  45. #undef HAVE_SETITIMER
  46. #undef HAVE_SIGSETJMP
  47. #undef HAVE_IODBC
  48. #define HAVE_LIBDL 1
  49. #define HAVE_GETTIMEOFDAY 1
  50. #define HAVE_PUTENV 1
  51. #define HAVE_TZSET 1
  52. #undef HAVE_FLOCK
  53. #define HAVE_ALLOCA 1
  54. #undef HAVE_SYS_TIME_H
  55. #undef HAVE_STRUCT_STAT_ST_BLKSIZE
  56. #undef HAVE_STRUCT_STAT_ST_BLOCKS
  57. #define HAVE_STRUCT_STAT_ST_RDEV 1
  58. #define REGEX 1
  59. #define HSREGEX 1
  60. #define HAVE_GETLOGIN 1
  61. #define HAVE_MEMMOVE 1
  62. #define HAVE_REGCOMP 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. #define HAVE_LIBM 1
  80. #undef HAVE_RINT
  81. #define SIZEOF_SHORT 2
  82. /* int and long are still 32bit in 64bit compiles */
  83. #define SIZEOF_INT 4
  84. #define SIZEOF_LONG 4
  85. /* MSVC.6/NET don't allow 'long long' or know 'intmax_t' */
  86. #define SIZEOF_LONG_LONG 8 /* defined as __int64 */
  87. #define SIZEOF_INTMAX_T 0
  88. #define ssize_t SSIZE_T
  89. #ifdef _WIN64
  90. # define SIZEOF_SIZE_T 8
  91. # define SIZEOF_PTRDIFF_T 8
  92. #else
  93. # define SIZEOF_SIZE_T 4
  94. # define SIZEOF_PTRDIFF_T 4
  95. #endif
  96. #define SIZEOF_OFF_T 4
  97. #define HAVE_FNMATCH
  98. #define HAVE_GLOB
  99. #define PHP_SHLIB_SUFFIX "dll"
  100. #define PHP_SHLIB_EXT_PREFIX "php_"
  101. #define HAVE_SQLDATASOURCES
  102. /* Win32 supports socketpair by the emulation in win32/sockets.c */
  103. #define HAVE_SOCKETPAIR 1
  104. #define HAVE_SOCKLEN_T 1
  105. /* Win32 support proc_open */
  106. #define PHP_CAN_SUPPORT_PROC_OPEN 1
  107. /* inet_ntop() / inet_pton() */
  108. #define HAVE_INET_PTON 1
  109. #define HAVE_INET_NTOP 1
  110. /* vs.net 2005 has a 64-bit time_t. This will likely break
  111. * 3rdParty libs that were built with older compilers; switch
  112. * back to 32-bit */
  113. #ifndef _WIN64
  114. # define _USE_32BIT_TIME_T 1
  115. #endif
  116. #define _REENTRANT 1
  117. #define HAVE_GETRUSAGE
  118. #define HAVE_FTOK 1
  119. #define HAVE_NICE
  120. #ifdef __clang__
  121. #define HAVE_FUNC_ATTRIBUTE_TARGET 1
  122. #endif
  123. #define HAVE_GETADDRINFO 1