diff options
| author | MegaMech <MegaMech@users.noreply.github.com> | 2026-02-08 13:50:22 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-02-08 13:50:22 -0700 |
| commit | 3aa2c9662aa811023ca6730e7f4815ae61886691 (patch) | |
| tree | b391851aa112f753780231697590f3b9f7a5335b /include | |
| parent | f3d6612b20c92788811f14e749e0d954c39e8a62 (diff) | |
Attempt At Fixing Clang (#647)
* Update Game.h
* Update Game.h
* Update macros.h
Diffstat (limited to 'include')
| -rw-r--r-- | include/macros.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/macros.h b/include/macros.h index 31240c89c..f3cd4846f 100644 --- a/include/macros.h +++ b/include/macros.h @@ -4,6 +4,20 @@ #include <math.h> #include <libultraship.h> +// no return attribute +#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L + #include <stdnoreturn.h> + #define NORETURN noreturn +#elif defined(__cplusplus) && __cplusplus >= 201103L + #define NORETURN [[noreturn]] +#elif defined(_MSC_VER) + #define NORETURN __declspec(noreturn) +#elif defined(__GNUC__) || defined(__clang__) + #define NORETURN __attribute__((noreturn)) +#else + #define NORETURN +#endif + #ifndef __sgi #define GLOBAL_ASM(...) #endif |
