diff --git a/include/dolphin/os.h b/include/dolphin/os.h index f3e6326ec6..ef23b716ff 100644 --- a/include/dolphin/os.h +++ b/include/dolphin/os.h @@ -209,8 +209,8 @@ void OSSetSoundMode(u32 mode); DECL_WEAK void OSReport(const char* msg, ...); DECL_WEAK void OSVReport(const char* msg, va_list list); -DECL_WEAK void OSPanic(const char* file, int line, const char* msg, ...); -void OSFatal(GXColor fg, GXColor bg, const char* msg); +DECL_WEAK void OSPanic NORETURN(const char* file, int line, const char* msg, ...); +void OSFatal NORETURN(GXColor fg, GXColor bg, const char* msg); // do these belong here? DECL_WEAK void OSAttention(const char* msg, ...); diff --git a/include/dolphin/types.h b/include/dolphin/types.h index e8c3df7861..5044dabbb5 100644 --- a/include/dolphin/types.h +++ b/include/dolphin/types.h @@ -106,5 +106,11 @@ typedef unsigned int uint; #include #endif +#if TARGET_PC && __cplusplus +#define NORETURN [[noreturn]] +#else +#define NORETURN +#endif + #endif #endif