unifdef __STDC__

This commit is contained in:
Warner Losh 2002-03-23 23:37:07 +00:00
parent 55e031a3c8
commit bbf5c743d2

View File

@ -253,31 +253,16 @@ die(signo)
exit(0);
}
#if __STDC__
#include <stdarg.h>
#else
#include <varargs.h>
#endif
#if __STDC__
void
error(const char *fmt, ...)
#else
void
error(fmt, va_alist)
char *fmt;
va_dcl
#endif
{
va_list ap;
char buf[255];
int oy, ox;
#if __STDC__
va_start(ap, fmt);
#else
va_start(ap);
#endif
va_start(ap, fmt);
if (wnd) {
getyx(stdscr, oy, ox);
(void) vsnprintf(buf, sizeof(buf), fmt, ap);