projects
/
chise
/
xemacs-chise.git-
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update.
[chise/xemacs-chise.git-]
/
src
/
sysdir.h
diff --git
a/src/sysdir.h
b/src/sysdir.h
index
76f9cd8
..
a123909
100644
(file)
--- a/
src/sysdir.h
+++ b/
src/sysdir.h
@@
-29,10
+29,11
@@
Boston, MA 02111-1307, USA. */
#ifdef SYSV_SYSTEM_DIR
# include <dirent.h>
#ifdef SYSV_SYSTEM_DIR
# include <dirent.h>
+#elif defined (WIN32_NATIVE)
+# include <direct.h>
+# include "ndir.h"
#elif defined (NONSYSTEM_DIR_LIBRARY)
# include "ndir.h"
#elif defined (NONSYSTEM_DIR_LIBRARY)
# include "ndir.h"
-#elif defined (MSDOS)
-# include <dirent.h>
#else
# include <sys/dir.h>
#endif /* not NONSYSTEM_DIR_LIBRARY */
#else
# include <sys/dir.h>
#endif /* not NONSYSTEM_DIR_LIBRARY */
@@
-58,10
+59,10
@@
Boston, MA 02111-1307, USA. */
Since applying strlen to the name always works, we'll just do that. */
#define NAMLEN(p) strlen (p->d_name)
Since applying strlen to the name always works, we'll just do that. */
#define NAMLEN(p) strlen (p->d_name)
-#ifdef MSDOS
-#define DIRENTRY_NONEMPTY(p) ((p)->d_name[0] != 0)
+#ifdef __CYGWIN__
+# define DIRENTRY_NONEMPTY(p) ((p)->d_name[0] != '\0')
#else
#else
-#define DIRENTRY_NONEMPTY(p) ((p)->d_ino)
+# define DIRENTRY_NONEMPTY(p) ((p)->d_ino)
#endif
/* encapsulation: directory calls */
#endif
/* encapsulation: directory calls */