diff options
| author | Andi Gutmans <andi@php.net> | 1999-10-20 18:09:44 +0000 |
|---|---|---|
| committer | Andi Gutmans <andi@php.net> | 1999-10-20 18:09:44 +0000 |
| commit | 5212b2fe5b4e8675bd1472fac8f77627a5b07426 (patch) | |
| tree | 732b5821d5eb6868bfaede7fab657089c2ccd2d8 /ext/standard/dir.c | |
| parent | 33ebd5238741a224d67e75f6f7e47ba9c2341ffd (diff) | |
| download | php-git-5212b2fe5b4e8675bd1472fac8f77627a5b07426.tar.gz | |
- Make CVS compile on Win32.
- Rename php3_COM.h -> php_COM.h
Diffstat (limited to 'ext/standard/dir.c')
| -rw-r--r-- | ext/standard/dir.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/ext/standard/dir.c b/ext/standard/dir.c index 3345d255c6..1a1b6d1bdc 100644 --- a/ext/standard/dir.c +++ b/ext/standard/dir.c @@ -243,7 +243,7 @@ PHP_FUNCTION(chdir) PHP_FUNCTION(getcwd) { char path[MAXPATHLEN]; - char *ret; + char *ret=NULL; if (ARG_COUNT(ht) != 0) { WRONG_PARAM_COUNT; @@ -253,8 +253,11 @@ PHP_FUNCTION(getcwd) ret = getcwd(path,MAXPATHLEN-1); #elif HAVE_GETWD ret = getwd(path); -#elif -#warning no proper getcwd support for your site +/* + * #warning is not ANSI C + * #else + * #warning no proper getcwd support for your site + */ #endif if (ret) { |
