summaryrefslogtreecommitdiff
path: root/ext/standard
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2003-11-07 09:26:18 +0000
committerMarcus Boerger <helly@php.net>2003-11-07 09:26:18 +0000
commit220e41a42148ad2b652ffaad6b02e965603975b4 (patch)
tree8eae8a71e1c166c8d6d7aaace5ee302d06bcc8a6 /ext/standard
parentccb63114064f3d8e954024326c8511cd96946e86 (diff)
downloadphp-git-220e41a42148ad2b652ffaad6b02e965603975b4.tar.gz
Move typedef to where it is needed now.
Diffstat (limited to 'ext/standard')
-rw-r--r--ext/standard/basic_functions.h8
-rw-r--r--ext/standard/php_filestat.h6
2 files changed, 8 insertions, 6 deletions
diff --git a/ext/standard/basic_functions.h b/ext/standard/basic_functions.h
index 60a2249739..6ef8b91be9 100644
--- a/ext/standard/basic_functions.h
+++ b/ext/standard/basic_functions.h
@@ -28,6 +28,8 @@
#include <wchar.h>
#endif
+#include "php_filestat.h"
+
#include "zend_highlight.h"
#include "url_scanner.h"
@@ -120,12 +122,6 @@ PHP_FUNCTION(stream_bucket_new);
PHP_MINIT_FUNCTION(user_filters);
PHP_RSHUTDOWN_FUNCTION(user_filters);
-#ifdef PHP_WIN32
-typedef unsigned int php_stat_len;
-#else
-typedef int php_stat_len;
-#endif
-
PHPAPI int _php_error_log(int opt_err, char *message, char *opt, char *headers TSRMLS_DC);
#if SIZEOF_INT == 4
diff --git a/ext/standard/php_filestat.h b/ext/standard/php_filestat.h
index 4e485b24bd..4e7e3a6bb2 100644
--- a/ext/standard/php_filestat.h
+++ b/ext/standard/php_filestat.h
@@ -75,6 +75,12 @@ PHP_FUNCTION(clearstatcache);
#define getuid() 1
#endif
+#ifdef PHP_WIN32
+typedef unsigned int php_stat_len;
+#else
+typedef int php_stat_len;
+#endif
+
PHPAPI void php_stat(const char *filename, php_stat_len filename_length, int type, pval *return_value TSRMLS_DC);
/* Switches for various filestat functions: */