]> granicus.if.org Git - php/commitdiff
- php_is_dir_ok() should work on Windows now.
authorAndi Gutmans <andi@php.net>
Thu, 16 Mar 2000 19:10:01 +0000 (19:10 +0000)
committerAndi Gutmans <andi@php.net>
Thu, 16 Mar 2000 19:10:01 +0000 (19:10 +0000)
main/php_virtual_cwd.c

index 1086fa05d80e6a7cb7054c0d01f41a641b5b756f..974caf567b5ba582c102d07905b58191c6b4715b 100644 (file)
@@ -72,7 +72,10 @@ typedef struct _cwd_state {
        uint cwd_length;
 } cwd_state;
 
-#ifndef PHP_WIN32
+#ifndef S_ISDIR
+#define S_ISDIR(mode) ((mode) & _S_IFDIR)
+#endif
+
 static int php_is_dir_ok(const cwd_state *state) 
 {
        struct stat buf;
@@ -82,7 +85,7 @@ static int php_is_dir_ok(const cwd_state *state)
 
        return (1);
 }
-#endif
+
 
 
 char *virtual_getcwd(cwd_state *state, uint *length)