unifdef __STDC__
This commit is contained in:
parent
55e031a3c8
commit
bbf5c743d2
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user