1 |
diff -Nrup a/readline.h b/readline.h |
2 |
--- a/readline.h 2022-02-18 17:13:59.000000000 +0100 |
3 |
+++ b/readline.h 2023-10-13 17:13:33.258604615 +0200 |
4 |
@@ -405,7 +405,7 @@ extern void rl_deactivate_mark (void); |
5 |
extern int rl_mark_active_p (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 -Nrup a/rlstdc.h b/rlstdc.h |
14 |
--- a/rlstdc.h 2011-03-26 20:00:21.000000000 +0100 |
15 |
+++ b/rlstdc.h 2023-10-13 17:15:43.380749505 +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 |
/* Moved from config.h.in because readline.h:rl_message depends on these |