summaryrefslogtreecommitdiff
path: root/build-aux/snippet
diff options
context:
space:
mode:
Diffstat (limited to 'build-aux/snippet')
-rw-r--r--build-aux/snippet/_Noreturn.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/build-aux/snippet/_Noreturn.h b/build-aux/snippet/_Noreturn.h
new file mode 100644
index 0000000000..1a7b4daed0
--- /dev/null
+++ b/build-aux/snippet/_Noreturn.h
@@ -0,0 +1,10 @@
+#ifndef _Noreturn
+# if (3 <= __GNUC__ || (__GNUC__ == 2 && 8 <= __GNUC_MINOR__) \
+ || 0x5110 <= __SUNPRO_C)
+# define _Noreturn __attribute__ ((__noreturn__))
+# elif 1200 <= _MSC_VER
+# define _Noreturn __declspec (noreturn)
+# else
+# define _Noreturn
+# endif
+#endif