1 |
diff -urNad readline5-5.2~/readline.h readline5-5.2/readline.h |
2 |
--- readline5-5.2~/readline.h 2006-08-16 21:16:59.000000000 +0200 |
3 |
+++ readline5-5.2/readline.h 2006-10-28 14:03:36.000000000 +0200 |
4 |
@@ -373,7 +373,7 @@ |
5 |
extern int rl_crlf PARAMS((void)); |
6 |
|
7 |
#if defined (USE_VARARGS) && defined (PREFER_STDARG) |
8 |
-extern int rl_message (const char *, ...) __attribute__((__format__ (printf, 1, 2))); |
9 |
+extern int rl_message (const char *, ...) __rl_attribute__((__format__ (printf, 1, 2))); |
10 |
#else |
11 |
extern int rl_message (); |
12 |
#endif |
13 |
diff -urNad readline5-5.2~/rlstdc.h readline5-5.2/rlstdc.h |
14 |
--- readline5-5.2~/rlstdc.h 2003-05-30 21:08:02.000000000 +0200 |
15 |
+++ readline5-5.2/rlstdc.h 2006-10-28 14:03:36.000000000 +0200 |
16 |
@@ -36,10 +36,10 @@ |
17 |
# endif |
18 |
#endif |
19 |
|
20 |
-#ifndef __attribute__ |
21 |
-# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8) |
22 |
-# define __attribute__(x) |
23 |
-# endif |
24 |
+#if defined(__GNUC__) && __GNUC__ >= 2 |
25 |
+# define __rl_attribute__(x) __attribute__(x) |
26 |
+#else |
27 |
+# define __rl_attribute__(x) |
28 |
#endif |
29 |
|
30 |
#endif /* !_RL_STDC_H_ */ |