aboutsummaryrefslogtreecommitdiff
path: root/gcc/cexp.y
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1997-01-04 06:22:32 -0500
committerRichard Kenner <kenner@gcc.gnu.org>1997-01-04 06:22:32 -0500
commit095f66970e27a07c1c2e68aa87227627205956c8 (patch)
tree7b2092a6822d26f6e375af1206547c30ce950c17 /gcc/cexp.y
parent35d9eabb9dfc334f2a96e3f2dbcc8a9bdebc9970 (diff)
downloadgcc-095f66970e27a07c1c2e68aa87227627205956c8.zip
gcc-095f66970e27a07c1c2e68aa87227627205956c8.tar.gz
gcc-095f66970e27a07c1c2e68aa87227627205956c8.tar.bz2
(PRINTF_PROTO): Use __printf__ in __attribute__, not printf.
From-SVN: r13362
Diffstat (limited to 'gcc/cexp.y')
-rw-r--r--gcc/cexp.y6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/cexp.y b/gcc/cexp.y
index e5a39ae..93d3c3b 100644
--- a/gcc/cexp.y
+++ b/gcc/cexp.y
@@ -1,5 +1,5 @@
/* Parse C expressions for CCCP.
- Copyright (C) 1987, 1992, 1994, 1995, 1996 Free Software Foundation.
+ Copyright (C) 1987, 1992, 1994, 1995, 1996, 1997 Free Software Foundation.
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
@@ -118,13 +118,13 @@ struct arglist {
# 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 <varargs.h>
# 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 *); \