Fix Win32 build

This commit is contained in:
Zeev Suraski 2000-06-04 22:00:17 +00:00
parent bfac4633a5
commit 4a1da8b6f9
6 changed files with 10 additions and 7 deletions

4
NEWS
View File

@ -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)

View File

@ -31,7 +31,6 @@
#endif
#ifdef PHP_WIN32
#define NEEDRDH 1
#include "win32/readdir.h"
#endif
#include <time.h>

View File

@ -37,7 +37,6 @@
#include <errno.h>
#ifdef PHP_WIN32
#define NEEDRDH 1
#include "win32/readdir.h"
#endif

View File

@ -25,7 +25,6 @@
#endif
#ifdef PHP_WIN32
#define NEEDRDH 1
#include "win32/readdir.h"
#endif

View File

@ -2,7 +2,6 @@
#include <string.h>
#include <errno.h>
#define NEEDRDH 1
#include "readdir.h"
#include "php.h"

View File

@ -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 */