diff --git a/ext/standard/filestat.c b/ext/standard/filestat.c index 62be6f01c887..4190353d7dc7 100644 --- a/ext/standard/filestat.c +++ b/ext/standard/filestat.c @@ -105,7 +105,7 @@ PHP_RSHUTDOWN_FUNCTION(filestat) /* {{{ */ /* }}} */ static zend_result php_disk_total_space(char *path, double *space) /* {{{ */ -#if defined(WINDOWS) /* {{{ */ +#if defined(PHP_WIN32) /* {{{ */ { ULARGE_INTEGER FreeBytesAvailableToCaller; ULARGE_INTEGER TotalNumberOfBytes; @@ -128,7 +128,7 @@ static zend_result php_disk_total_space(char *path, double *space) /* {{{ */ return SUCCESS; } /* }}} */ -#else /* {{{ if !defined(WINDOWS) */ +#else /* {{{ if !defined(PHP_WIN32) */ { double bytestotal = 0; #if defined(HAVE_SYS_STATVFS_H) && defined(HAVE_STATVFS) @@ -190,7 +190,7 @@ PHP_FUNCTION(disk_total_space) /* }}} */ static zend_result php_disk_free_space(char *path, double *space) /* {{{ */ -#if defined(WINDOWS) /* {{{ */ +#if defined(PHP_WIN32) /* {{{ */ { ULARGE_INTEGER FreeBytesAvailableToCaller; ULARGE_INTEGER TotalNumberOfBytes; @@ -211,7 +211,7 @@ static zend_result php_disk_free_space(char *path, double *space) /* {{{ */ return SUCCESS; } -#else /* {{{ if !defined(WINDOWS) */ +#else /* {{{ if !defined(PHP_WIN32) */ { double bytesfree = 0; #if defined(HAVE_SYS_STATVFS_H) && defined(HAVE_STATVFS) @@ -309,7 +309,7 @@ static void php_do_chgrp(INTERNAL_FUNCTION_PARAMETERS, int do_lchgrp) /* {{{ */ size_t filename_len; zend_string *group_str; zend_long group_long; -#if !defined(WINDOWS) +#if !defined(PHP_WIN32) gid_t gid; int ret; #endif @@ -339,7 +339,7 @@ static void php_do_chgrp(INTERNAL_FUNCTION_PARAMETERS, int do_lchgrp) /* {{{ */ RETURN_FALSE; } } else { -#ifndef WINDOWS +#ifndef PHP_WIN32 /* On Windows, we expect regular chgrp to fail silently by default */ php_error_docref(NULL, E_WARNING, "Cannot call chgrp() for a non-standard stream"); #endif @@ -347,7 +347,7 @@ static void php_do_chgrp(INTERNAL_FUNCTION_PARAMETERS, int do_lchgrp) /* {{{ */ } } -#ifdef WINDOWS +#ifdef PHP_WIN32 /* We have no native chgrp on Windows, nothing left to do if stream doesn't have own implementation */ RETURN_FALSE; #else @@ -435,7 +435,7 @@ static void php_do_chown(INTERNAL_FUNCTION_PARAMETERS, int do_lchown) /* {{{ */ size_t filename_len; zend_string *user_str; zend_long user_long; -#if !defined(WINDOWS) +#if !defined(PHP_WIN32) uid_t uid; int ret; #endif @@ -465,7 +465,7 @@ static void php_do_chown(INTERNAL_FUNCTION_PARAMETERS, int do_lchown) /* {{{ */ RETURN_FALSE; } } else { -#ifndef WINDOWS +#ifndef PHP_WIN32 /* On Windows, we expect regular chown to fail silently by default */ php_error_docref(NULL, E_WARNING, "Cannot call chown() for a non-standard stream"); #endif @@ -473,7 +473,7 @@ static void php_do_chown(INTERNAL_FUNCTION_PARAMETERS, int do_lchown) /* {{{ */ } } -#ifdef WINDOWS +#ifdef PHP_WIN32 /* We have no native chown on Windows, nothing left to do if stream doesn't have own implementation */ RETURN_FALSE; #else