diff options
author | Andi Gutmans <andi@php.net> | 2000-05-23 13:49:55 +0000 |
---|---|---|
committer | Andi Gutmans <andi@php.net> | 2000-05-23 13:49:55 +0000 |
commit | 32dffec0f8899e82d7db06ecf17228f357291d28 (patch) | |
tree | 58ca5cf458acd382a956f65fb02808beab3a3daa /ext/ftp/php_ftp.c | |
parent | cd8c4268ecc88d27a8e7d7013f7f29370122a447 (diff) | |
download | php-git-32dffec0f8899e82d7db06ecf17228f357291d28.tar.gz |
- PHP_WIN32 macro should be used with #ifdef/#ifndef
- Always use PHP_WIN32 instead of WIN32/WINNT values
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) { |