aboutsummaryrefslogtreecommitdiffstats
path: root/include/c99_compat.h
diff options
context:
space:
mode:
authorRoland Scheidegger <[email protected]>2018-01-11 01:49:00 +0100
committerRoland Scheidegger <[email protected]>2018-01-12 02:52:10 +0100
commit85377dc55c55d1c5536cdf9a86ce67ebb59b7e77 (patch)
tree99c1c36e45c497e58b573fa4cc437b4b2ba768ed /include/c99_compat.h
parentad11fc3571e025b22d9feed80a7f499665f7a255 (diff)
util: fix NORETURN for msvc, add HAVE_FUNC_ATTRIBUTE_NORETURN to c99_compat.h
We've seen some problems internally due to macro redefinition. Fix this by adding HAVE_FUNC_ATTRIBUTE_NORETURN to c99_compat.h, and defining it for msvc. And avoid redefinition just in case. Reviewed-by: Brian Paul <[email protected]> Reviewed-by: Jose Fonseca <[email protected]>
Diffstat (limited to 'include/c99_compat.h')
-rw-r--r--include/c99_compat.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/c99_compat.h b/include/c99_compat.h
index cb690c6e2a0..81621a7fabc 100644
--- a/include/c99_compat.h
+++ b/include/c99_compat.h
@@ -164,6 +164,7 @@ test_c99_compat_h(const void * restrict a,
# define HAVE_FUNC_ATTRIBUTE_FORMAT 1
# define HAVE_FUNC_ATTRIBUTE_PACKED 1
# define HAVE_FUNC_ATTRIBUTE_ALIAS 1
+# define HAVE_FUNC_ATTRIBUTE_NORETURN 1
# if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
/* https://gcc.gnu.org/onlinedocs/gcc-4.3.6/gcc/Other-Builtins.html */