/[packages]/cauldron/readline/current/SOURCES/rl-attribute.patch
ViewVC logotype

Contents of /cauldron/readline/current/SOURCES/rl-attribute.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1665490 - (show annotations) (download)
Wed Dec 30 01:30:28 2020 UTC (3 years, 3 months ago) by luigiwalser
File size: 1096 byte(s)
- 8.1
- rediff patches 1 and 3
- remove upstream patch for readline 8.0

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_mark_active_p 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 /* Moved from config.h.in because readline.h:rl_message depends on these

  ViewVC Help
Powered by ViewVC 1.1.30