X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=src%2Fsysdir.h;h=0139a8d5cc07e746931ceaf3f6a6cffb3df6f5ec;hb=559a417fe0d606049dd4a63292c0e83c210f7a16;hp=6c84ce8eaef9c77cd98265186f85df17dc67b07a;hpb=716cfba952c1dc0d2cf5c968971f3780ba728a89;p=chise%2Fxemacs-chise.git.1 diff --git a/src/sysdir.h b/src/sysdir.h index 6c84ce8..0139a8d 100644 --- a/src/sysdir.h +++ b/src/sysdir.h @@ -29,10 +29,11 @@ Boston, MA 02111-1307, USA. */ #ifdef SYSV_SYSTEM_DIR # include +#elif defined (WIN32_NATIVE) +# include +# include "ndir.h" #elif defined (NONSYSTEM_DIR_LIBRARY) # include "ndir.h" -#elif defined (MSDOS) -# include #else # include #endif /* not NONSYSTEM_DIR_LIBRARY */ @@ -58,16 +59,12 @@ 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) -#ifdef MSDOS -#define DIRENTRY_NONEMPTY(p) ((p)->d_name[0] != 0) -#else #define DIRENTRY_NONEMPTY(p) ((p)->d_ino) -#endif /* encapsulation: directory calls */ #ifdef ENCAPSULATE_CHDIR -int sys_chdir (CONST char *path); +int sys_chdir (const char *path); #endif #if defined (ENCAPSULATE_CHDIR) && !defined (DONT_ENCAPSULATE) # undef chdir @@ -78,7 +75,7 @@ int sys_chdir (CONST char *path); #endif #ifdef ENCAPSULATE_MKDIR -int sys_mkdir (CONST char *path, mode_t mode); +int sys_mkdir (const char *path, mode_t mode); #endif #if defined (ENCAPSULATE_MKDIR) && !defined (DONT_ENCAPSULATE) # undef mkdir @@ -89,7 +86,7 @@ int sys_mkdir (CONST char *path, mode_t mode); #endif #ifdef ENCAPSULATE_OPENDIR -DIR *sys_opendir (CONST char *filename); +DIR *sys_opendir (const char *filename); #endif #if defined (ENCAPSULATE_OPENDIR) && !defined (DONT_ENCAPSULATE) # undef opendir @@ -122,7 +119,7 @@ int sys_closedir (DIR *dirp); #endif #ifdef ENCAPSULATE_RMDIR -int sys_rmdir (CONST char *path); +int sys_rmdir (const char *path); #endif #if defined (ENCAPSULATE_RMDIR) && !defined (DONT_ENCAPSULATE) # undef rmdir