diff options
author | Bernd Kuhls <bernd.kuhls@t-online.de> | 2016-10-16 23:01:26 +0200 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2016-10-19 23:40:32 +0200 |
commit | 70dbd3227db8b6856cc95b3afbecd36e9a1847a6 (patch) | |
tree | c33e9e07952690dd8fdfdea8a7ee4bb974e85d26 /package/vlc/0010-static-assert.patch | |
parent | d7b74f07a51da6da51bb0669eb3dba874e9dec73 (diff) | |
download | buildroot-70dbd3227db8b6856cc95b3afbecd36e9a1847a6.tar.gz buildroot-70dbd3227db8b6856cc95b3afbecd36e9a1847a6.zip |
package/vlc: backport upstream patches to fix compat function for static_assert
Fixes
http://autobuild.buildroot.net/results/3b9/3b9d15f226057706c185270788050dace7b7b535/
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/vlc/0010-static-assert.patch')
-rw-r--r-- | package/vlc/0010-static-assert.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/package/vlc/0010-static-assert.patch b/package/vlc/0010-static-assert.patch new file mode 100644 index 0000000000..87fd56bda2 --- /dev/null +++ b/package/vlc/0010-static-assert.patch @@ -0,0 +1,25 @@ +From: Thomas Guillem <thomas@gllm.fr> +Date: Thu, 30 Apr 2015 13:29:50 +0000 (+0200) +Subject: Fix build when using C99 and C++11 +X-Git-Url: http://git.videolan.org/?p=vlc.git;a=commitdiff_plain;h=51ce6cdaf598754e617900994c1943c6cba6d604 + +Fix build when using C99 and C++11 + +Indeed, C99 doesn't have static_assert and C++11 has it. + +Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> +--- + +diff --git a/include/vlc_fixups.h b/include/vlc_fixups.h +index b949d24..ee168d7 100644 +--- a/include/vlc_fixups.h ++++ b/include/vlc_fixups.h +@@ -239,7 +239,7 @@ static inline locale_t newlocale(int mask, const char * locale, locale_t base) + } + #endif + +-#if !defined (HAVE_STATIC_ASSERT) ++#if !defined (HAVE_STATIC_ASSERT) && !defined(__cpp_static_assert) + # define _Static_assert(x, s) ((void) sizeof (struct { unsigned:-!(x); })) + # define static_assert _Static_assert + #endif |