X-Git-Url: http://git.chise.org/gitweb/?p=chise%2Fxemacs-chise.git.1;a=blobdiff_plain;f=src%2Fsysdir.h;h=a123909d47b17adb559cc7c0698c6c76780aeca9;hp=3616ef6613aef7f9fa71f19aab4e846a4bd2a13f;hb=414b512c0774e67ba8e160b605447d862d3be166;hpb=ea21eb75bbf90355514d65686bd53bea579f8e23 diff --git a/src/sysdir.h b/src/sysdir.h index 3616ef6..a123909 100644 --- a/src/sysdir.h +++ b/src/sysdir.h @@ -20,16 +20,20 @@ Boston, MA 02111-1307, USA. */ /* Synched up with: Not really in FSF. */ +#ifndef INCLUDED_sysdir_h_ +#define INCLUDED_sysdir_h_ + #ifdef HAVE_UNISTD_H #include #endif #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 */ @@ -55,16 +59,16 @@ 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) +#ifdef __CYGWIN__ +# define DIRENTRY_NONEMPTY(p) ((p)->d_name[0] != '\0') #else -#define DIRENTRY_NONEMPTY(p) ((p)->d_ino) +# 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 @@ -75,7 +79,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 @@ -86,7 +90,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 @@ -119,7 +123,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 @@ -129,3 +133,4 @@ int sys_rmdir (CONST char *path); # define sys_rmdir rmdir #endif +#endif /* INCLUDED_sysdir_h_ */