From 7758b0efd33cd4e34bdae903458d6c77e7a35d07 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 20 Jun 2002 15:58:18 +0000 Subject: Change `defined(X)' syntax to `defined X' in cpp directives. --- src/system.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/system.h') diff --git a/src/system.h b/src/system.h index aae5675ea..a2c08d2f6 100644 --- a/src/system.h +++ b/src/system.h @@ -25,7 +25,7 @@ you must include before including this file #include -#if !defined(HAVE_MKFIFO) +#if !defined HAVE_MKFIFO # define mkfifo(path, mode) (mknod ((path), (mode) | S_IFIFO, 0)) #endif @@ -152,7 +152,7 @@ typedef enum {false = 0, true = 1} bool; # include #endif -#if !defined (SEEK_SET) +#if !defined SEEK_SET # define SEEK_SET 0 # define SEEK_CUR 1 # define SEEK_END 2 @@ -244,7 +244,7 @@ typedef enum {false = 0, true = 1} bool; ST_NBLOCKSIZE: Size of blocks used when calculating ST_NBLOCKS. */ #ifndef HAVE_STRUCT_STAT_ST_BLOCKS # define ST_BLKSIZE(statbuf) DEV_BSIZE -# if defined(_POSIX_SOURCE) || !defined(BSIZE) /* fileblocks.c uses BSIZE. */ +# if defined _POSIX_SOURCE || !defined BSIZE /* fileblocks.c uses BSIZE. */ # define ST_NBLOCKS(statbuf) \ (S_ISREG ((statbuf).st_mode) \ || S_ISDIR ((statbuf).st_mode) \ @@ -259,16 +259,16 @@ typedef enum {false = 0, true = 1} bool; /* Some systems, like Sequents, return st_blksize of 0 on pipes. */ # define ST_BLKSIZE(statbuf) ((statbuf).st_blksize > 0 \ ? (statbuf).st_blksize : DEV_BSIZE) -# if defined(hpux) || defined(__hpux__) || defined(__hpux) +# if defined hpux || defined __hpux__ || defined __hpux /* HP-UX counts st_blocks in 1024-byte units. This loses when mixing HP-UX and BSD filesystems with NFS. */ # define ST_NBLOCKSIZE 1024 # else /* !hpux */ -# if defined(_AIX) && defined(_I386) +# if defined _AIX && defined _I386 /* AIX PS/2 counts st_blocks in 4K units. */ # define ST_NBLOCKSIZE (4 * 1024) # else /* not AIX PS/2 */ -# if defined(_CRAY) +# if defined _CRAY # define ST_NBLOCKS(statbuf) \ (S_ISREG ((statbuf).st_mode) \ || S_ISDIR ((statbuf).st_mode) \ -- cgit v1.2.3-54-g00ecf