From: Andi Gutmans Date: Mon, 19 Jul 1999 16:08:43 +0000 (+0000) Subject: Fix Win32 compilation X-Git-Tag: php-4.0b1~63 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a064237fc041a541ecd86d88a28e4c4debefec2c;p=php Fix Win32 compilation --- diff --git a/main/config.w32.h b/main/config.w32.h index d4aee43480..5cba103bef 100644 --- a/main/config.w32.h +++ b/main/config.w32.h @@ -10,10 +10,14 @@ #define HAVE_BINDLIB 1 /* set to enable bcmath */ -#define WITH_BCMATH 1 +#define WITH_BCMATH 0 /* should be added to runtime config*/ #define PHP3_URL_FOPEN 1 +#define STDIN_FILENO 0 +#define STDOUT_FILENO 1 +#define STDERR_FILENO 2 + /* ---------------------------------------------------------------- The following are defaults for run-time configuration ---------------------------------------------------------------*/ diff --git a/main/internal_functions_win32.c b/main/internal_functions_win32.c index 08291fb5fb..9fcbecd98d 100644 --- a/main/internal_functions_win32.c +++ b/main/internal_functions_win32.c @@ -68,7 +68,9 @@ zend_module_entry *php3_builtin_modules[] = { phpext_filestat_ptr, phpext_mail_ptr, phpext_syslog_ptr, +#if WITH_BCMATH phpext_bcmath_ptr, +#endif phpext_standard_ptr, COM_module_ptr, phpext_regex_ptr,