diff options
author | Alan Coopersmith <alan.coopersmith@sun.com> | 2008-09-05 14:32:15 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@sun.com> | 2008-09-05 14:32:15 -0700 |
commit | acd277d7fd48ccfd8ef2ca052b4e144ee95a5d94 (patch) | |
tree | 58ca7002101e9789bd018b158e65af77bed52523 /listing.c | |
parent | 37b62a26716d3abf2ae07dd88cf54bc04d980bd8 (diff) |
Remove X_NOT_POSIX #ifdefs
POSIX.1-1990 is well below the current minimum bar
Diffstat (limited to 'listing.c')
-rw-r--r-- | listing.c | 39 |
1 files changed, 12 insertions, 27 deletions
@@ -84,15 +84,15 @@ SOFTWARE. #define DEBUG_VAR listingDebug #include "xkbcomp.h" #include <stdlib.h> -#ifndef X_NOT_POSIX + #ifdef _POSIX_SOURCE -#include <limits.h> +# include <limits.h> #else -#define _POSIX_SOURCE -#include <limits.h> -#undef _POSIX_SOURCE -#endif +# define _POSIX_SOURCE +# include <limits.h> +# undef _POSIX_SOURCE #endif + #ifndef PATH_MAX #ifdef WIN32 #define PATH_MAX 512 @@ -109,28 +109,13 @@ SOFTWARE. #endif #ifdef WIN32 -#include <windows.h> -#define FileName(file) file.cFileName -#undef TEXT -#undef ALTERNATE -#else -#define FileName(file) file->d_name -#ifndef X_NOT_POSIX -#include <dirent.h> -#else -#ifdef SYSV -#include <dirent.h> +# include <windows.h> +# define FileName(file) file.cFileName +# undef TEXT +# undef ALTERNATE #else -#ifdef USG -#include <dirent.h> -#else -#include <sys/dir.h> -#ifndef dirent -#define dirent direct -#endif -#endif -#endif -#endif +# include <dirent.h> +# define FileName(file) file->d_name #endif #include "xkbpath.h" |