]> pd.if.org Git - pdclib/blobdiff - includes/stdnoreturn.h
* Change the style of inclusion of the internal/ headers. Modern preprocessors
[pdclib] / includes / stdnoreturn.h
diff --git a/includes/stdnoreturn.h b/includes/stdnoreturn.h
new file mode 100644 (file)
index 0000000..5997ff6
--- /dev/null
@@ -0,0 +1,16 @@
+#ifndef _PDCLIB_STDNORETURN_H\r
+#define _PDCLIB_STDNORETURN_H\r
+#include <_PDCLIB_aux.h>\r
+\r
+#ifndef __cplusplus\r
+/* This is problematic - if we don't define it, then C code can't be compiled\r
+ * on a C++ compiler. If we do define it, then we break all instances of C++\r
+ * [[noreturn]]\r
+ *\r
+ * This does not appear well thought out...\r
+ */\r
+#define noreturn _PDCLIB_noreturn\r
+#endif\r
+\r
+\r
+#endif\r