summaryrefslogtreecommitdiff
path: root/config/snippet/_Noreturn.h
diff options
context:
space:
mode:
Diffstat (limited to 'config/snippet/_Noreturn.h')
-rw-r--r--config/snippet/_Noreturn.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/config/snippet/_Noreturn.h b/config/snippet/_Noreturn.h
new file mode 100644
index 00000000..1a7b4dae
--- /dev/null
+++ b/config/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