mirror of
https://github.com/zeldaret/oot
synced 2026-07-08 14:26:45 -04:00
[iQue] Build some C files with EGCS (#2396)
This commit is contained in:
+13
-3
@@ -8,12 +8,22 @@
|
||||
#endif
|
||||
|
||||
#define UNUSED __attribute__((unused))
|
||||
#define FALLTHROUGH __attribute__((fallthrough))
|
||||
#define NORETURN __attribute__((noreturn))
|
||||
#define NO_REORDER __attribute__((no_reorder))
|
||||
#define SECTION_DATA __attribute__((section(".data")))
|
||||
|
||||
#ifdef __GNUC__
|
||||
#if __GNUC__ >= 7
|
||||
#define FALLTHROUGH __attribute__((fallthrough))
|
||||
#else
|
||||
#define FALLTHROUGH
|
||||
#endif
|
||||
|
||||
#if defined(__GNUC__) && defined(NON_MATCHING)
|
||||
#define NORETURN __attribute__((noreturn))
|
||||
#else
|
||||
#define NORETURN
|
||||
#endif
|
||||
|
||||
#if defined(__GNUC__) && defined(NON_MATCHING)
|
||||
#define UNREACHABLE() __builtin_unreachable()
|
||||
#else
|
||||
#define UNREACHABLE()
|
||||
|
||||
Reference in New Issue
Block a user