summaryrefslogtreecommitdiff
path: root/main/internal_functions_win32.c
diff options
context:
space:
mode:
authorSebastian Bergmann <sebastian@php.net>2002-04-18 16:34:13 +0000
committerSebastian Bergmann <sebastian@php.net>2002-04-18 16:34:13 +0000
commit05a2de0d6a77e706959fe4eefbffb90188e98ecc (patch)
treeb76e48ee6e9c397c03c3ce2d92ce07ad99c80e17 /main/internal_functions_win32.c
parentd11ee7c1eaaedace7a78799bb3ee1c5c31459d30 (diff)
downloadphp-git-05a2de0d6a77e706959fe4eefbffb90188e98ecc.tar.gz
Add HAVE_CALENDAR, HAVE_COM, HAVE_SESSION and HAVE_TOKENIZER to enable/disable these extensions, respectively. It is now possible to build PHP on Win32 with just ext/standard and ext/pcre. The latter is needed by the former, because at least the aggregation functions use PCRE.
Diffstat (limited to 'main/internal_functions_win32.c')
-rw-r--r--main/internal_functions_win32.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/main/internal_functions_win32.c b/main/internal_functions_win32.c
index 26e75c25c4..3420b1439a 100644
--- a/main/internal_functions_win32.c
+++ b/main/internal_functions_win32.c
@@ -48,8 +48,12 @@
#include "ext/standard/php_lcg.h"
#include "ext/standard/php_array.h"
#include "ext/standard/php_assert.h"
+#if HAVE_CALENDAR
#include "ext/calendar/php_calendar.h"
+#endif
+#if HAVE_COM
#include "ext/com/php_COM.h"
+#endif
#if HAVE_FTP
#include "ext/ftp/php_ftp.h"
#endif
@@ -58,7 +62,9 @@
#if HAVE_UODBC
#include "ext/odbc/php_odbc.h"
#endif
+#if HAVE_SESSION
#include "ext/session/php_session.h"
+#endif
#if HAVE_LIBEXPAT
#include "ext/xml/php_xml.h"
#endif
@@ -72,18 +78,25 @@
#if HAVE_OVERLOAD
#include "ext/overload/php_overload.h"
#endif
+#if HAVE_TOKENIZER
#include "ext/tokenizer/php_tokenizer.h"
+#endif
/* }}} */
/* {{{ php_builtin_extensions[]
*/
zend_module_entry *php_builtin_extensions[] = {
phpext_standard_ptr,
+ phpext_pcre_ptr,
#if WITH_BCMATH
phpext_bcmath_ptr,
#endif
+#if HAVE_CALENDAR
phpext_calendar_ptr,
+#endif
+#if HAVE_COM
phpext_com_ptr,
+#endif
#if HAVE_FTP
phpext_ftp_ptr,
#endif
@@ -99,15 +112,18 @@ zend_module_entry *php_builtin_extensions[] = {
#if HAVE_OVERLOAD
phpext_overload_ptr,
#endif
+#if HAVE_TOKENIZER
phpext_tokenizer_ptr,
- phpext_pcre_ptr,
+#endif
#if HAVE_LIBEXPAT
phpext_xml_ptr,
#endif
#if HAVE_LIBEXPAT && HAVE_WDDX
phpext_wddx_ptr,
#endif
+#if HAVE_SESSION
phpext_session_ptr
+#endif
};
/* }}} */