Mercurial > hg > xemacs-beta
diff src/sysdir.h @ 410:de805c49cfc1 r21-2-35
Import from CVS: tag r21-2-35
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:19:21 +0200 |
parents | 74fd4e045ea6 |
children | 697ef44129c6 |
line wrap: on
line diff
--- a/src/sysdir.h Mon Aug 13 11:18:12 2007 +0200 +++ b/src/sysdir.h Mon Aug 13 11:19:21 2007 +0200 @@ -29,10 +29,11 @@ #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 (MSDOS) -# include <dirent.h> #else # include <sys/dir.h> #endif /* not NONSYSTEM_DIR_LIBRARY */ @@ -58,11 +59,7 @@ 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) -#else #define DIRENTRY_NONEMPTY(p) ((p)->d_ino) -#endif /* encapsulation: directory calls */