From: Jim Meyering Date: Tue, 28 Sep 1999 16:22:54 +0000 (+0000) Subject: Do s/#ifdef HAVE_/#if HAVE_/ -- solely for aesthetics. X-Git-Tag: FILEUTILS-4_0j-trial~198 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ea0df9b67dcaa29d3790ca8747bd14d1dc989c6e;p=thirdparty%2Fcoreutils.git Do s/#ifdef HAVE_/#if HAVE_/ -- solely for aesthetics. Do the same for other config.h macros like CLOSEDIR_VOID and MAJOR_*. --- diff --git a/src/system.h b/src/system.h index e9ad4c994f..58b378289a 100644 --- a/src/system.h +++ b/src/system.h @@ -19,7 +19,7 @@ #include -#ifdef STAT_MACROS_BROKEN +#if STAT_MACROS_BROKEN # undef S_ISBLK # undef S_ISCHR # undef S_ISDIR @@ -129,7 +129,7 @@ #define CHMOD_MODE_BITS \ (S_ISUID | S_ISGID | S_ISVTX | S_IRWXU | S_IRWXG | S_IRWXO) -#ifdef ST_MTIM_NSEC +#if ST_MTIM_NSEC # define ST_TIME_CMP_NS(a, b, ns) ((a).ns < (b).ns ? -1 : (a).ns > (b).ns) #else # define ST_TIME_CMP_NS(a, b, ns) 0 @@ -144,13 +144,13 @@ # define mkfifo(path, mode) (mknod ((path), (mode) | S_IFIFO, 0)) #endif -#ifdef HAVE_SYS_PARAM_H +#if HAVE_SYS_PARAM_H # include #endif /* should be included before any preprocessor test of _POSIX_VERSION. */ -#ifdef HAVE_UNISTD_H +#if HAVE_UNISTD_H # include #endif @@ -187,11 +187,11 @@ #endif /* Since major is a function on SVR4, we can't use `ifndef major'. */ -#ifdef MAJOR_IN_MKDEV +#if MAJOR_IN_MKDEV # include # define HAVE_MAJOR #endif -#ifdef MAJOR_IN_SYSMACROS +#if MAJOR_IN_SYSMACROS # include # define HAVE_MAJOR #endif @@ -206,7 +206,7 @@ #endif #undef HAVE_MAJOR -#ifdef HAVE_UTIME_H +#if HAVE_UTIME_H # include #endif @@ -223,7 +223,7 @@ struct utimbuf /* Don't use bcopy! Use memmove if source and destination may overlap, memcpy otherwise. */ -#ifdef HAVE_STRING_H +#if HAVE_STRING_H # if !STDC_HEADERS && HAVE_MEMORY_H # include # endif @@ -255,7 +255,7 @@ extern int errno; # define EXIT_SUCCESS 0 #endif -#ifdef HAVE_FCNTL_H +#if HAVE_FCNTL_H # include #else # include @@ -273,24 +273,24 @@ extern int errno; # define R_OK 4 #endif -#ifdef HAVE_DIRENT_H +#if HAVE_DIRENT_H # include # define NLENGTH(direct) (strlen((direct)->d_name)) #else /* not HAVE_DIRENT_H */ # define dirent direct # define NLENGTH(direct) ((direct)->d_namlen) -# ifdef HAVE_SYS_NDIR_H +# if HAVE_SYS_NDIR_H # include # endif /* HAVE_SYS_NDIR_H */ -# ifdef HAVE_SYS_DIR_H +# if HAVE_SYS_DIR_H # include # endif /* HAVE_SYS_DIR_H */ -# ifdef HAVE_NDIR_H +# if HAVE_NDIR_H # include # endif /* HAVE_NDIR_H */ #endif /* HAVE_DIRENT_H */ -#ifdef CLOSEDIR_VOID +#if CLOSEDIR_VOID /* Fake a return value. */ # define CLOSEDIR(d) (closedir (d), 0) #else