From: Paul Mackerras Date: Thu, 27 Nov 1997 06:37:15 +0000 (+0000) Subject: __STDC__ may be defined but zero? X-Git-Tag: RELEASE_2_3_6~142 X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=commitdiff_plain;h=8197e4418d390af8d4286f15589e0704d8a387d0;ds=sidebyside __STDC__ may be defined but zero? --- diff --git a/chat/chat.c b/chat/chat.c index 0068413..1b744a9 100644 --- a/chat/chat.c +++ b/chat/chat.c @@ -78,7 +78,7 @@ */ #ifndef lint -static char rcsid[] = "$Id: chat.c,v 1.16 1997/11/27 06:00:06 paulus Exp $"; +static char rcsid[] = "$Id: chat.c,v 1.17 1997/11/27 06:37:15 paulus Exp $"; #endif #include @@ -106,15 +106,6 @@ static char rcsid[] = "$Id: chat.c,v 1.16 1997/11/27 06:00:06 paulus Exp $"; #include #endif -#if __STDC__ -#include -#define __V(x) x -#else -#include -#define __V(x) (va_alist) va_dcl -#define const -#endif - #define STR_LEN 1024 #ifndef SIGTYPE @@ -470,7 +461,7 @@ void logf __V((const char *fmt, ...)) { va_list args; -#if __STDC__ +#ifdef __STDC__ va_start(args, fmt); #else char *fmt; @@ -493,7 +484,7 @@ void fatal __V((int code, const char *fmt, ...)) { va_list args; -#if __STDC__ +#ifdef __STDC__ va_start(args, fmt); #else int code;