From 0ae69b3114b096cf1b0a1ed6a5740db0b00b0955 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Ni=C3=B1o=20D=C3=ADaz?= Date: Mon, 2 Apr 2018 00:39:12 +0100 Subject: [PATCH] Rename stdnoreturn.h to helpers.h MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This file will contain more compiler-specific helpers. Signed-off-by: Antonio Niño Díaz --- include/asm/main.h | 2 +- include/extern/err.h | 2 +- include/{extern/stdnoreturn.h => helpers.h} | 6 +++--- include/link/script.h | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) rename include/{extern/stdnoreturn.h => helpers.h} (88%) diff --git a/include/asm/main.h b/include/asm/main.h index 7eed1df4..77f3e854 100644 --- a/include/asm/main.h +++ b/include/asm/main.h @@ -12,7 +12,7 @@ #include #include -#include "extern/stdnoreturn.h" +#include "helpers.h" struct sOptions { char binary[2]; diff --git a/include/extern/err.h b/include/extern/err.h index aa272a0a..291e20a5 100644 --- a/include/extern/err.h +++ b/include/extern/err.h @@ -17,7 +17,7 @@ #include -#include "extern/stdnoreturn.h" +#include "helpers.h" #define warn rgbds_warn #define vwarn rgbds_vwarn diff --git a/include/extern/stdnoreturn.h b/include/helpers.h similarity index 88% rename from include/extern/stdnoreturn.h rename to include/helpers.h index bd004267..05b1c710 100644 --- a/include/extern/stdnoreturn.h +++ b/include/helpers.h @@ -6,8 +6,8 @@ * SPDX-License-Identifier: MIT */ -#ifndef EXTERN_STDNORETURN_H -#define EXTERN_STDNORETURN_H +#ifndef HELPERS_H +#define HELPERS_H #if defined(__STDC_VERSION__) #if __STDC_VERSION__ >= 201112L @@ -35,4 +35,4 @@ #define noreturn #endif -#endif /* EXTERN_STDNORETURN_H */ +#endif /* HELPERS_H */ diff --git a/include/link/script.h b/include/link/script.h index 8796d3c8..14e9b2f8 100644 --- a/include/link/script.h +++ b/include/link/script.h @@ -11,7 +11,7 @@ #include -#include "extern/stdnoreturn.h" +#include "helpers.h" noreturn void script_fatalerror(const char *fmt, ...);