summaryrefslogtreecommitdiff
path: root/lib/getopt.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1994-11-03 00:58:25 +0000
committerJim Meyering <jim@meyering.net>1994-11-03 00:58:25 +0000
commit4e253268e1d934531bf4045d53ae90c50356d8e2 (patch)
treedcd90aac80acefc67d2816adbac42ce5129c2f02 /lib/getopt.c
parent21229f21b4bea5dfc27c6934daa3d64e59e67327 (diff)
downloadcoreutils-4e253268e1d934531bf4045d53ae90c50356d8e2.tar.xz
merge with 1.10x1
Diffstat (limited to 'lib/getopt.c')
-rw-r--r--lib/getopt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/getopt.c b/lib/getopt.c
index ac0d6f3f7..4bab2b1b9 100644
--- a/lib/getopt.c
+++ b/lib/getopt.c
@@ -30,7 +30,7 @@
#include <config.h>
#endif
-#ifndef __STDC__
+#if !defined (__STDC__) || !__STDC__
/* This is a separate conditional since some stdc systems
reject `defined (const)'. */
#ifndef const
@@ -188,7 +188,7 @@ my_index (str, chr)
#ifdef __GNUC__
/* Note that Motorola Delta 68k R3V7 comes with GCC but not stddef.h.
That was relevant to code that was here before. */
-#ifndef __STDC__
+#if !defined (__STDC__) || !__STDC__
/* gcc with -traditional declares the built-in strlen to return int,
and has done so at least since version 2.4.5. -- rms. */
extern int strlen (const char *);