mirror of
https://github.com/php/php-src.git
synced 2025-01-27 06:03:45 +08:00
Fix Win32 build
This commit is contained in:
parent
bfac4633a5
commit
4a1da8b6f9
4
NEWS
4
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)
|
||||
|
@ -31,7 +31,6 @@
|
||||
#endif
|
||||
|
||||
#ifdef PHP_WIN32
|
||||
#define NEEDRDH 1
|
||||
#include "win32/readdir.h"
|
||||
#endif
|
||||
#include <time.h>
|
||||
|
@ -37,7 +37,6 @@
|
||||
#include <errno.h>
|
||||
|
||||
#ifdef PHP_WIN32
|
||||
#define NEEDRDH 1
|
||||
#include "win32/readdir.h"
|
||||
#endif
|
||||
|
||||
|
@ -25,7 +25,6 @@
|
||||
#endif
|
||||
|
||||
#ifdef PHP_WIN32
|
||||
#define NEEDRDH 1
|
||||
#include "win32/readdir.h"
|
||||
#endif
|
||||
|
||||
|
@ -2,7 +2,6 @@
|
||||
#include <string.h>
|
||||
#include <errno.h>
|
||||
|
||||
#define NEEDRDH 1
|
||||
#include "readdir.h"
|
||||
#include "php.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 */
|
Loading…
Reference in New Issue
Block a user