diff options
author | Paul Smith <psmith@gnu.org> | 2004-03-06 08:05:17 +0000 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2004-03-06 08:05:17 +0000 |
commit | f305a52c02cd17188bb6cc429d56c5912c976229 (patch) | |
tree | a90c162509322242fb0e7f0caf747cecb09c659c /misc.c | |
parent | 213ccc2234fe09b99a39f3d3884626898596c815 (diff) | |
download | gunmake-f305a52c02cd17188bb6cc429d56c5912c976229.tar.gz |
Don't use __STDC__; some compilers don't set it properly.
Use autoconf's test to set HAVE_ANSI_COMPILER and check that instead.
Diffstat (limited to 'misc.c')
-rw-r--r-- | misc.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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) |