From f305a52c02cd17188bb6cc429d56c5912c976229 Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Sat, 6 Mar 2004 08:05:17 +0000 Subject: Don't use __STDC__; some compilers don't set it properly. Use autoconf's test to set HAVE_ANSI_COMPILER and check that instead. --- misc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'misc.c') diff --git a/misc.c b/misc.c index 07a9c47..9d3ff4f 100644 --- a/misc.c +++ b/misc.c @@ -205,7 +205,7 @@ concat (const char *s1, const char *s2, const char *s3) /* Print a message on stdout. */ void -#if __STDC__ && USE_VARIADIC && HAVE_STDARG_H +#if HAVE_ANSI_COMPILER && USE_VARIADIC && HAVE_STDARG_H message (int prefix, const char *fmt, ...) #else message (prefix, fmt, va_alist) @@ -241,7 +241,7 @@ message (prefix, fmt, va_alist) /* Print an error message. */ void -#if __STDC__ && USE_VARIADIC && HAVE_STDARG_H +#if HAVE_ANSI_COMPILER && USE_VARIADIC && HAVE_STDARG_H error (const struct floc *flocp, const char *fmt, ...) #else error (flocp, fmt, va_alist) @@ -274,7 +274,7 @@ error (flocp, fmt, va_alist) /* Print an error message and exit. */ void -#if __STDC__ && USE_VARIADIC && HAVE_STDARG_H +#if HAVE_ANSI_COMPILER && USE_VARIADIC && HAVE_STDARG_H fatal (const struct floc *flocp, const char *fmt, ...) #else fatal (flocp, fmt, va_alist) -- cgit v1.2.3