From: Andi Gutmans Date: Thu, 16 Mar 2000 19:10:01 +0000 (+0000) Subject: - php_is_dir_ok() should work on Windows now. X-Git-Tag: PHP-4.0-RC1~107 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=14f76028aa716d781e6770ad800595c721b2e449;p=php - php_is_dir_ok() should work on Windows now. --- diff --git a/main/php_virtual_cwd.c b/main/php_virtual_cwd.c index 1086fa05d8..974caf567b 100644 --- a/main/php_virtual_cwd.c +++ b/main/php_virtual_cwd.c @@ -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)