From: Zeev Suraski Date: Sun, 4 Jun 2000 22:00:17 +0000 (+0000) Subject: Fix Win32 build X-Git-Tag: PRE_EIGHT_BYTE_ALLOC_PATCH~111 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4a1da8b6f9570bca2e97b60755ebe6a6fd8645c7;p=php Fix Win32 build --- diff --git a/NEWS b/NEWS index 0f91e1915c..4ae4cfea8e 100644 --- a/NEWS +++ b/NEWS @@ -5,7 +5,9 @@ PHP 4.0 NEWS - Added create_function(), which gives the ability to create functions on-the-fly (Zeev, Zend Engine) - Added support for comparisons of arrays (with arrays) and objects (with - objects) (Zeev, Zend Engine) + objects); The equality operator (==) performs an unordered comparison, + whereas the identity operator (===) performs an ordered comparison (Zeev, + Zend Engine) - Allow all functions that receive user-defined function callbacks to accept an array that contains an object and a method name, in place of a function name, e.g. usort($array, array($obj, "ObjSort")) (Zeev, Zend Engine) diff --git a/ext/session/mod_files.c b/ext/session/mod_files.c index dc6d9081cd..a4b7ed0a4d 100644 --- a/ext/session/mod_files.c +++ b/ext/session/mod_files.c @@ -31,7 +31,6 @@ #endif #ifdef PHP_WIN32 -#define NEEDRDH 1 #include "win32/readdir.h" #endif #include diff --git a/ext/standard/dir.c b/ext/standard/dir.c index a79dac8c78..d4799eebbe 100644 --- a/ext/standard/dir.c +++ b/ext/standard/dir.c @@ -37,7 +37,6 @@ #include #ifdef PHP_WIN32 -#define NEEDRDH 1 #include "win32/readdir.h" #endif diff --git a/main/reentrancy.c b/main/reentrancy.c index 866cf4273e..79e4f13da3 100644 --- a/main/reentrancy.c +++ b/main/reentrancy.c @@ -25,7 +25,6 @@ #endif #ifdef PHP_WIN32 -#define NEEDRDH 1 #include "win32/readdir.h" #endif diff --git a/win32/readdir.c b/win32/readdir.c index ed799a6747..e2f30f11ba 100644 --- a/win32/readdir.c +++ b/win32/readdir.c @@ -2,7 +2,6 @@ #include #include -#define NEEDRDH 1 #include "readdir.h" #include "php.h" diff --git a/win32/readdir.h b/win32/readdir.h index c2c969842a..f6c576252c 100644 --- a/win32/readdir.h +++ b/win32/readdir.h @@ -1,3 +1,7 @@ +#ifndef _READDIR_H +#define _READDIR_H + + /* * Structures and types used to implement opendir/readdir/closedir * on Windows 95/NT. @@ -10,7 +14,6 @@ /* struct dirent - same as Unix */ -#if NEEDRDH struct dirent { long d_ino; /* inode (always 1 in WIN32) */ @@ -19,6 +22,7 @@ struct dirent { char d_name[_MAX_FNAME + 1]; /* filename (null terminated) */ }; + /* typedef DIR - not the same as Unix */ typedef struct { long handle; /* _findfirst/_findnext handle */ @@ -36,4 +40,5 @@ int readdir_r(DIR *, struct dirent *, struct dirent **); int closedir(DIR *); void rewinddir(DIR *); -#endif + +#endif /* _READDIR_H */ \ No newline at end of file