]> pd.if.org Git - pdclib/commitdiff
<stdnoreturn.h> is defined to be just this. Including it in a C++ context is the...
authorMartin Baute <solar@rootdirectory.de>
Sun, 13 Mar 2016 06:43:07 +0000 (07:43 +0100)
committerMartin Baute <solar@rootdirectory.de>
Sun, 13 Mar 2016 06:43:07 +0000 (07:43 +0100)
includes/stdnoreturn.h

index 5997ff696ec4bfcbe04ca23de4cbaad639fc2829..c425308cefb67319d05572a345c3866391122b51 100644 (file)
@@ -1,16 +1,12 @@
-#ifndef _PDCLIB_STDNORETURN_H\r
-#define _PDCLIB_STDNORETURN_H\r
-#include <_PDCLIB_aux.h>\r
+/* _Noreturn <stdnoreturn.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
+   This file is part of the Public Domain C Library (PDCLib).\r
+   Permission is granted to use, modify, and / or redistribute at will.\r
+*/\r
+\r
+#ifndef _PDCLIB_STDNORETURN_H\r
+#define _PDCLIB_STDNORETURN_H _PDCLIB_STDNORETURN_H\r
 \r
+#define noreturn _Noreturn\r
 \r
 #endif\r