2018-05-01 22:33:59 +02:00
|
|
|
From 55e3ac26c1238df4c85877c32763a02c00da1345 Mon Sep 17 00:00:00 2001
|
2016-10-16 23:01:26 +02:00
|
|
|
From: Thomas Guillem <thomas@gllm.fr>
|
2018-05-01 22:33:59 +02:00
|
|
|
Date: Thu, 30 Apr 2015 13:29:50 +0200
|
|
|
|
Subject: [PATCH] Fix build when using C99 and C++11
|
2016-10-16 23:01:26 +02:00
|
|
|
|
|
|
|
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>
|
|
|
|
---
|
2018-05-01 22:33:59 +02:00
|
|
|
include/vlc_fixups.h | 2 +-
|
|
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
2016-10-16 23:01:26 +02:00
|
|
|
|
|
|
|
diff --git a/include/vlc_fixups.h b/include/vlc_fixups.h
|
2018-05-01 22:33:59 +02:00
|
|
|
index 997f600d6a..0d4fcd0c8d 100644
|
2016-10-16 23:01:26 +02:00
|
|
|
--- 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
|
2018-05-01 22:33:59 +02:00
|
|
|
--
|
|
|
|
2.14.3
|
|
|
|
|