From a064237fc041a541ecd86d88a28e4c4debefec2c Mon Sep 17 00:00:00 2001 From: Andi Gutmans Date: Mon, 19 Jul 1999 16:08:43 +0000 Subject: [PATCH] Fix Win32 compilation --- main/config.w32.h | 6 +++++- main/internal_functions_win32.c | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) 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, -- 2.50.0