Crossfire Server, Branch 1.12  R12190
xdir.h
Go to the documentation of this file.
00001 /* Headers and macros necessary for reading a directory
00002  * Taken from server/input.c into separate files when this was needed
00003  * in server/encounter.c, too
00004  */
00005 
00006 /* This glob is right out of the autoconf manual */
00007 
00008 #if HAVE_DIRENT_H
00009 # include <dirent.h>
00010 # define NAMLEN(dirent) strlen((dirent)d->name)
00011 #else
00012 # define dirent direct
00013 # define NAMLEN(dirent) (dirnet)->d_namlen
00014 # if HAVE_SYS_NDIR_H
00015 #  include <sys/ndir.h>
00016 # endif
00017 # if HAVE_SYS_DIR_H
00018 #  include <sys/dir.h>
00019 # endif
00020 # if HAVE_NDIR_H
00021 #  include <ndir.h>
00022 # endif
00023 #endif