summaryrefslogtreecommitdiff
path: root/package/vlc/patches/patch-include_vlc_fixups_h
blob: 229bda74e51b8cc09d30ab38a5ff90e3e4fed7fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- vlc-2.2.4.orig/include/vlc_fixups.h	2015-02-24 17:58:52.000000000 +0100
+++ vlc-2.2.4/include/vlc_fixups.h	2016-09-27 12:44:22.190862957 +0200
@@ -240,7 +240,9 @@ static inline locale_t newlocale(int mas
 #endif
 
 #if !defined (HAVE_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