unifdef -D__STDC__

This commit is contained in:
Warner Losh 2002-03-23 23:19:00 +00:00
parent 7d03b11905
commit 7ddea7b836
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=93055

View File

@ -52,17 +52,12 @@ __FBSDID("$FreeBSD$");
#include <err.h>
#include <errno.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#ifdef __STDC__
#include <stdarg.h>
#else
#include <varargs.h>
#endif
#include "zopen.h"
void compress(const char *, const char *, int);
@ -413,42 +408,22 @@ usage(iscompress)
}
void
#if __STDC__
cwarnx(const char *fmt, ...)
#else
cwarnx(fmt, va_alist)
int eval;
const char *fmt;
va_dcl
#endif
{
va_list ap;
#if __STDC__
va_start(ap, fmt);
#else
va_start(ap);
#endif
vwarnx(fmt, ap);
va_end(ap);
eval = 1;
}
void
#if __STDC__
cwarn(const char *fmt, ...)
#else
cwarn(fmt, va_alist)
int eval;
const char *fmt;
va_dcl
#endif
{
va_list ap;
#if __STDC__
va_start(ap, fmt);
#else
va_start(ap);
#endif
vwarn(fmt, ap);
va_end(ap);
eval = 1;