diff options
author | Thomas Petazzoni <thomas.petazzoni@bootlin.com> | 2018-05-01 22:33:59 +0200 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@bootlin.com> | 2018-05-01 22:33:59 +0200 |
commit | 0fb1b8053201e9da0c6ab8e5c6c633c7acb9dde9 (patch) | |
tree | 47a9b3e3fbafd1071aece7efda92482ac1eb5153 /package/vlc/0011-static-assert.patch | |
parent | 9f115bfc2ac798c737d0c2a8ec8c96670e814a49 (diff) | |
download | buildroot-0fb1b8053201e9da0c6ab8e5c6c633c7acb9dde9.tar.gz buildroot-0fb1b8053201e9da0c6ab8e5c6c633c7acb9dde9.zip |
vlc: switch to proper Git formatted patches
VLC uses Git as its version control system, so it makes sense to use
Git formatted patches.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Diffstat (limited to 'package/vlc/0011-static-assert.patch')
-rw-r--r-- | package/vlc/0011-static-assert.patch | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/package/vlc/0011-static-assert.patch b/package/vlc/0011-static-assert.patch deleted file mode 100644 index 3ce23e1384..0000000000 --- a/package/vlc/0011-static-assert.patch +++ /dev/null @@ -1,28 +0,0 @@ -From: Thomas Guillem <thomas@gllm.fr> -Date: Mon, 14 Dec 2015 09:08:25 +0000 (+0100) -Subject: compat: fix static_assert -X-Git-Url: http://git.videolan.org/?p=vlc.git;a=commitdiff_plain;h=6faf9066670db6e0d241ead6a3926b2d9cc6a041 - -compat: fix static_assert - -It was not possible to use it outside of functions. - -Signed-off-by: Rémi Denis-Courmont <remi@remlab.net> -Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> ---- - -diff --git a/include/vlc_fixups.h b/include/vlc_fixups.h -index 213d3f3..bd798d0 100644 ---- a/include/vlc_fixups.h -+++ b/include/vlc_fixups.h -@@ -273,7 +273,9 @@ static inline locale_t newlocale(int mask, const char * locale, locale_t base) - #endif - - #if !defined (HAVE_STATIC_ASSERT) && !defined(__cpp_static_assert) --# define _Static_assert(x, s) ((void) sizeof (struct { unsigned:-!(x); })) -+# define STATIC_ASSERT_CONCAT_(a, b) a##b -+# define STATIC_ASSERT_CONCAT(a, b) STATIC_ASSERT_CONCAT_(a, b) -+# define _Static_assert(x, s) extern char STATIC_ASSERT_CONCAT(static_assert_, __LINE__)[sizeof(struct { unsigned:-!(x); })] - # define static_assert _Static_assert - #endif - |