From 095f66970e27a07c1c2e68aa87227627205956c8 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Sat, 4 Jan 1997 06:22:32 -0500 Subject: (PRINTF_PROTO): Use __printf__ in __attribute__, not printf. From-SVN: r13362 --- gcc/cccp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gcc/cccp.c') diff --git a/gcc/cccp.c b/gcc/cccp.c index f1987b7..930c914 100644 --- a/gcc/cccp.c +++ b/gcc/cccp.c @@ -1,5 +1,5 @@ /* C Compatible Compiler Preprocessor (CCCP) - Copyright (C) 1986, 87, 89, 92-95, 1996 Free Software Foundation, Inc. + Copyright (C) 1986, 87, 89, 92-96, 1997 Free Software Foundation, Inc. Written by Paul Rubin, June 1986 Adapted to ANSI C, Richard Stallman, Jan 1987 @@ -191,13 +191,13 @@ my_bzero (b, length) # define VA_START(va_list, var) va_start (va_list, var) # define PRINTF_ALIST(msg) char *msg, ... # define PRINTF_DCL(msg) -# define PRINTF_PROTO(ARGS, m, n) PROTO (ARGS) __attribute__ ((format (printf, m, n))) +# define PRINTF_PROTO(ARGS, m, n) PROTO (ARGS) __attribute__ ((format (__printf__, m, n))) #else # include # define VA_START(va_list, var) va_start (va_list) # define PRINTF_ALIST(msg) msg, va_alist # define PRINTF_DCL(msg) char *msg; va_dcl -# define PRINTF_PROTO(ARGS, m, n) () __attribute__ ((format (printf, m, n))) +# define PRINTF_PROTO(ARGS, m, n) () __attribute__ ((format (__printf__, m, n))) # define vfprintf(file, msg, args) \ { \ char *a0 = va_arg(args, char *); \ -- cgit v1.1