mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 21:31:04 +00:00
moving from STDARG to autoconf-blessed STDC_HEADERS
This commit is contained in:
parent
509cf742fc
commit
4541604e38
@ -39,12 +39,8 @@
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#if defined(XP_UNIX) && defined(STDC_HEADERS)
|
||||
#define STDARG
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
#ifdef STDARG
|
||||
#ifdef STDC_HEADERS
|
||||
#include <stdarg.h>
|
||||
#else
|
||||
#include <varargs.h>
|
||||
@ -68,7 +64,7 @@ int MsgPriority=5;
|
||||
#endif
|
||||
|
||||
/* Hmm, everyone seems to be defining this. */
|
||||
#define STDARG
|
||||
#define STDC_HEADERS
|
||||
|
||||
typedef enum {
|
||||
USE_LARGE_KEY,
|
||||
@ -88,7 +84,7 @@ ReportStatus(char *string, ...)
|
||||
{
|
||||
va_list args;
|
||||
|
||||
#ifdef STDARG
|
||||
#ifdef STDC_HEADERS
|
||||
va_start(args, string);
|
||||
#else
|
||||
va_start(args);
|
||||
@ -106,7 +102,7 @@ ReportError(char *string, ...)
|
||||
{
|
||||
va_list args;
|
||||
|
||||
#ifdef STDARG
|
||||
#ifdef STDC_HEADERS
|
||||
va_start(args, string);
|
||||
#else
|
||||
va_start(args);
|
||||
|
Loading…
Reference in New Issue
Block a user