shithub: rgbds

Download patch

ref: 9399ba36f9e431440816d0f4b1140ff164c7fef2
parent: ef3a4868455920a5a37749b540ca0f8b08bf226f
author: Anthony J. Bentley <[email protected]>
date: Tue Dec 30 22:20:14 EST 2014

Check for standards‐compliant platforms first in stdnoreturn.h.

--- a/include/extern/stdnoreturn.h
+++ b/include/extern/stdnoreturn.h
@@ -1,15 +1,15 @@
-#if _MSC_VER >= 1310
-    // MS Visual Studio 2003/.NET Framework 1.1 or newer
-    #define noreturn _declspec( noreturn)
-#elif __GNUC__ > 2 || (__GNUC__ == 2 && (__GNUC_MINOR__ >= 5))
-    // GCC 2.5 or newer
-    #define noreturn __attribute__ ((noreturn))
+#if __STDC_VERSION__ >= 201112L
+    // C11 or newer
+    #define noreturn _Noreturn
 #elif __cplusplus >= 201103L
     // C++11 or newer
     #define noreturn [[noreturn]]
-#elif __STDC_VERSION__ >= 201112L
-    // C11 or newer
-    #define noreturn _Noreturn
+#elif __GNUC__ > 2 || (__GNUC__ == 2 && (__GNUC_MINOR__ >= 5))
+    // GCC 2.5 or newer
+    #define noreturn __attribute__ ((noreturn))
+#elif _MSC_VER >= 1310
+    // MS Visual Studio 2003/.NET Framework 1.1 or newer
+    #define noreturn _declspec( noreturn)
 #else
     // unsupported, but no need to throw a fit
     #define noreturn