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/0010-Fix-build-when-using-C99-and-C-11.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/0010-Fix-build-when-using-C99-and-C-11.patch')
-rw-r--r-- | package/vlc/0010-Fix-build-when-using-C99-and-C-11.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/package/vlc/0010-Fix-build-when-using-C99-and-C-11.patch b/package/vlc/0010-Fix-build-when-using-C99-and-C-11.patch new file mode 100644 index 0000000000..8f12f5325e --- /dev/null +++ b/package/vlc/0010-Fix-build-when-using-C99-and-C-11.patch @@ -0,0 +1,30 @@ +From 55e3ac26c1238df4c85877c32763a02c00da1345 Mon Sep 17 00:00:00 2001 +From: Thomas Guillem <thomas@gllm.fr> +Date: Thu, 30 Apr 2015 13:29:50 +0200 +Subject: [PATCH] Fix build when using C99 and C++11 + +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> +--- + include/vlc_fixups.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/include/vlc_fixups.h b/include/vlc_fixups.h +index 997f600d6a..0d4fcd0c8d 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 +-- +2.14.3 + |