From: Jim Meyering Date: Sat, 8 Mar 2003 14:26:48 +0000 (+0000) Subject: Don't use `defined' in a #define directive. X-Git-Tag: v4.5.10~65 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=eff5758aaf9e5c5269aa7c21f80925e680204be1;p=thirdparty%2Fcoreutils.git Don't use `defined' in a #define directive. --- diff --git a/lib/xnanosleep.c b/lib/xnanosleep.c index ca8727bd04..195f5499dc 100644 --- a/lib/xnanosleep.c +++ b/lib/xnanosleep.c @@ -1,5 +1,5 @@ /* xnanosleep.c -- a more convenient interface to nanosleep - Copyright (C) 2002 Free Software Foundation, Inc. + Copyright (C) 2002, 2003 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -28,7 +28,12 @@ #include #include -#define USE_CLOCK_GETTIME (defined CLOCK_REALTIME && HAVE_CLOCK_GETTIME) +#if HAVE_CLOCK_GETTIME && defined CLOCK_REALTIME +# define USE_CLOCK_GETTIME 1 +#else +# define USE_CLOCK_GETTIME 0 +#endif + #if ! USE_CLOCK_GETTIME # include #endif