package/vlc: backport upstream patches to fix compat function for static_assert
[buildroot-gz.git] / package / readline / 0005-patchlevel-5.patch
blob6e73c7f2630ad1676514c976f3c8be0e3a70b427
1 From http://ftp.gnu.org/pub/gnu/readline/readline-6.3-patches/readline63-005
3 Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
5 READLINE PATCH REPORT
6 =====================
8 Readline-Release: 6.3
9 Patch-ID: readline63-005
11 Bug-Reported-by: Juergen Daubert <jue@jue.li>
12 Bug-Reference-ID: <20140303180430.GA7346@jue.netz>
13 Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-readline/2014-03/msg00002.html
15 Bug-Description:
17 There are still applications using the deprecated Function/VFunction/etc.
18 typedefs in rltypedefs.h. This patch restores the typedefs, but attempts
19 to mark them as deprecated using gcc/clang attributes. Thanks to Max Horn
20 for the suggestion.
22 Patch (apply with `patch -p0'):
24 *** a/readline-6.3-patched/rltypedefs.h 2011-03-26 14:53:31.000000000 -0400
25 --- b/rltypedefs.h 2014-04-10 11:30:45.000000000 -0400
26 ***************
27 *** 27,30 ****
28 --- 27,49 ----
29 #endif
31 + /* Old-style, attempt to mark as deprecated in some way people will notice. */
33 + #if !defined (_FUNCTION_DEF)
34 + # define _FUNCTION_DEF
36 + #if defined(__GNUC__) || defined(__clang__)
37 + typedef int Function () __attribute__ ((deprecated));
38 + typedef void VFunction () __attribute__ ((deprecated));
39 + typedef char *CPFunction () __attribute__ ((deprecated));
40 + typedef char **CPPFunction () __attribute__ ((deprecated));
41 + #else
42 + typedef int Function ();
43 + typedef void VFunction ();
44 + typedef char *CPFunction ();
45 + typedef char **CPPFunction ();
46 + #endif
48 + #endif /* _FUNCTION_DEF */
50 /* New style. */
52 *** a/readline-6.3/patchlevel 2013-11-15 08:11:11.000000000 -0500
53 --- b/patchlevel 2014-03-21 08:28:40.000000000 -0400
54 ***************
55 *** 1,3 ****
56 # Do not edit -- exists only for use by patch
58 ! 4
59 --- 1,3 ----
60 # Do not edit -- exists only for use by patch
62 ! 5