shithub: rgbds

Download patch

ref: 29253046d59b7ae944f8d9c9164e27228852b4cf
parent: 340362d98468a8a52b4ddc5dd19a6281b79fa8f0
author: Antonio Niño Díaz <[email protected]>
date: Sun Apr 1 20:19:33 EDT 2018

Remove C++ check in stdnoreturn.h

This isn't a C++ project, only keep checks for C compilers.

Signed-off-by: Antonio Niño Díaz <[email protected]>

--- a/include/extern/stdnoreturn.h
+++ b/include/extern/stdnoreturn.h
@@ -12,9 +12,6 @@
 #if __STDC_VERSION__ >= 201112L
 	/* C11 or newer */
 	#define noreturn _Noreturn
-#elif __cplusplus >= 201103L
-	/* C++11 or newer */
-	#define noreturn [[noreturn]]
 #elif __GNUC__ > 2 || (__GNUC__ == 2 && (__GNUC_MINOR__ >= 5))
 	/* GCC 2.5 or newer */
 	#define noreturn __attribute__ ((noreturn))