diff options
Diffstat (limited to 'gcc/system.h')
-rw-r--r-- | gcc/system.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/system.h b/gcc/system.h index 4e11218..7390974 100644 --- a/gcc/system.h +++ b/gcc/system.h @@ -414,4 +414,15 @@ extern void abort (); /* Get libiberty declarations. */ #include "libiberty.h" +#if defined (ANSI_PROTOTYPES) +# define PRINTF_PROTO(ARGS, m, n) PVPROTO (ARGS) ATTRIBUTE_PRINTF(m, n) +#else +# define PRINTF_PROTO(ARGS, m, n) () ATTRIBUTE_PRINTF(m, n) +#endif +#define PRINTF_PROTO_1(ARGS) PRINTF_PROTO(ARGS, 1, 2) +#define PRINTF_PROTO_2(ARGS) PRINTF_PROTO(ARGS, 2, 3) +#define PRINTF_PROTO_3(ARGS) PRINTF_PROTO(ARGS, 3, 4) +#define PRINTF_PROTO_4(ARGS) PRINTF_PROTO(ARGS, 4, 5) + + #endif /* __GCC_SYSTEM_H__ */ |