From 4a1da8b6f9570bca2e97b60755ebe6a6fd8645c7 Mon Sep 17 00:00:00 2001 From: Zeev Suraski Date: Sun, 4 Jun 2000 22:00:17 +0000 Subject: Fix Win32 build --- win32/readdir.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'win32/readdir.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 -- cgit v1.2.1