]> granicus.if.org Git - php/commitdiff
- fix build
authorPierre Joye <pajoye@php.net>
Tue, 4 May 2010 09:51:03 +0000 (09:51 +0000)
committerPierre Joye <pajoye@php.net>
Tue, 4 May 2010 09:51:03 +0000 (09:51 +0000)
sapi/apache2handler/sapi_apache2.c

index f5656bdc4ffd34f47c0644b0f49f6b55c9e191dc..7efa32d651561b2f47846f8138d0adc9f3dfbebf 100644 (file)
 
 #include "php_apache.h"
 
-#if _MSC_VER <= 1300
-# include "win32/php_strtoi64.h"
+#ifdef PHP_WIN32
+# if _MSC_VER <= 1300
+#  include "win32/php_strtoi64.h"
+# endif
 #endif
 
 /* UnixWare and Netware define shutdown to _shutdown, which causes problems later
@@ -124,7 +126,7 @@ php_apache_sapi_header_handler(sapi_header_struct *sapi_header, sapi_header_op_e
                                }
                                ctx->content_type = estrdup(val);
                        } else if (!strcasecmp(sapi_header->header, "content-length")) {
-#ifdef PHP_WINDOWS
+#ifdef PHP_WIN32
 # ifdef APR_HAS_LARGE_FILES
                                ap_set_content_length(ctx->r, (apr_off_t) _strtoui64(val, (char **)NULL, 10));
 # else