]> granicus.if.org Git - php/commitdiff
Move declarations
authorAnatol Belski <ab@php.net>
Fri, 8 Dec 2017 15:47:39 +0000 (16:47 +0100)
committerAnatol Belski <ab@php.net>
Fri, 8 Dec 2017 20:41:25 +0000 (21:41 +0100)
Zend/zend_virtual_cwd.h
win32/ioutil.h

index 5e41fe27426aa81ecda897df7491d5fca70a64fa..bade843634e94cd6886373da45904dab4f93e1bf 100644 (file)
@@ -160,21 +160,6 @@ CWD_API int virtual_rmdir(const char *pathname);
 CWD_API DIR *virtual_opendir(const char *pathname);
 CWD_API FILE *virtual_popen(const char *command, const char *type);
 CWD_API int virtual_access(const char *pathname, int mode);
-#if defined(ZEND_WIN32)
-/* these are not defined in win32 headers */
-#ifndef W_OK
-#define W_OK 0x02
-#endif
-#ifndef R_OK
-#define R_OK 0x04
-#endif
-#ifndef X_OK
-#define X_OK 0x01
-#endif
-#ifndef F_OK
-#define F_OK 0x00
-#endif
-#endif
 
 #if HAVE_UTIME
 CWD_API int virtual_utime(const char *filename, struct utimbuf *buf);
index 5e661fc096202f0d57f3f748656912eebfd84660..e886e6febf0b4993c4a0c058b9931af3b107a8f4 100644 (file)
@@ -74,6 +74,20 @@ extern "C" {
 typedef unsigned short mode_t;
 #endif
 
+/* these are not defined in win32 headers */
+#ifndef W_OK
+#define W_OK 0x02
+#endif
+#ifndef R_OK
+#define R_OK 0x04
+#endif
+#ifndef X_OK
+#define X_OK 0x01
+#endif
+#ifndef F_OK
+#define F_OK 0x00
+#endif
+
 typedef struct {
        DWORD access;
        DWORD share;