diff options
Diffstat (limited to 'ext/ftp/php_ftp.c')
-rw-r--r-- | ext/ftp/php_ftp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/ftp/php_ftp.c b/ext/ftp/php_ftp.c index 9770679430..aa7e6700ca 100644 --- a/ext/ftp/php_ftp.c +++ b/ext/ftp/php_ftp.c @@ -552,7 +552,7 @@ PHP_FUNCTION(ftp_get) RETURN_FALSE; } -#if defined(WIN32) || defined(WINNT) +#ifdef PHP_WIN32 if ((outfp = V_FOPEN(arg2->value.str.val, "wb")) == NULL) { #else if ((outfp = V_FOPEN(arg2->value.str.val, "w")) == NULL) { @@ -640,7 +640,7 @@ PHP_FUNCTION(ftp_put) convert_to_string(arg3); XTYPE(xtype, arg4); -#if defined(WIN32) || defined(WINNT) +#ifdef PHP_WIN32 if ((infp = V_FOPEN(arg3->value.str.val, "rb")) == NULL) { #else if ((infp = V_FOPEN(arg3->value.str.val, "r")) == NULL) { |