shithub: rgbds

Download patch

ref: 895d1d581382bfbcf67827318328d6efc1be463f
parent: e99a651165c104daae1dba4737e23f964a181ee8
author: Antonio Niño Díaz <[email protected]>
date: Mon Apr 2 18:12:15 EDT 2018

Remove check for C11 in helpers.h

The mandatory CFLAGS in the Makefile make the compiler use C99.

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

--- a/include/helpers.h
+++ b/include/helpers.h
@@ -9,14 +9,7 @@
 #ifndef HELPERS_H
 #define HELPERS_H
 
-#if defined(__STDC_VERSION__)
-	#if __STDC_VERSION__ >= 201112L
-		/* C11 or newer */
-		#define noreturn _Noreturn
-	#endif
-#endif
-
-#if defined(__GNUC__) && !defined(noreturn)
+#if defined(__GNUC__)
 	#if __GNUC__ > 2 || (__GNUC__ == 2 && (__GNUC_MINOR__ >= 5))
 		/* GCC 2.5 or newer */
 		#define noreturn __attribute__ ((noreturn))