diff options
author | gmcgarry <gmcgarry> | 2008-04-15 09:56:27 +0000 |
---|---|---|
committer | gmcgarry <gmcgarry> | 2008-04-15 09:56:27 +0000 |
commit | 5f688b2fd16a4d6ffb24ee252f985770049c810f (patch) | |
tree | 7bf797af7917420a41c7154235b31040fd5103cf /cpp.h | |
parent | ddd4f60f87ff565bb72e22cdb4e05a0af1d3a9a4 (diff) |
Test for header before inclusion. Test on availability of variadic macros.
Diffstat (limited to 'cpp.h')
-rw-r--r-- | cpp.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -28,6 +28,7 @@ */ #include <stdio.h> /* for obuf */ +#include <stdlib.h> #include "config.h" @@ -72,6 +73,7 @@ struct includ { int infil; usch *curptr; usch *maxread; + usch *ostr; usch *buffer; usch bbuf[NAMEMAX+CPPBUF+1]; } *ifiles; @@ -134,8 +136,13 @@ void line(void); usch *sheap(char *fmt, ...); void xwarning(usch *); void xerror(usch *); +#ifdef HAVE_CPP_VARARG_MACRO_GCC #define warning(...) xwarning(sheap(__VA_ARGS__)) #define error(...) xerror(sheap(__VA_ARGS__)) +#else +#define warning xwarning +#define error xerror +#endif void expmac(struct recur *); int cinput(void); void getcmnt(void); |