summaryrefslogtreecommitdiff
path: root/win32/readdir.h
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>2000-06-04 22:00:17 +0000
committerZeev Suraski <zeev@php.net>2000-06-04 22:00:17 +0000
commit4a1da8b6f9570bca2e97b60755ebe6a6fd8645c7 (patch)
treebd50df6bf80458f478bccb34b020dd37603844b1 /win32/readdir.h
parentbfac4633a512f9a91fb3ba3700f2124e5139a4ba (diff)
downloadphp-git-4a1da8b6f9570bca2e97b60755ebe6a6fd8645c7.tar.gz
Fix Win32 build
Diffstat (limited to 'win32/readdir.h')
-rw-r--r--win32/readdir.h9
1 files changed, 7 insertions, 2 deletions
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