X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=sys.h;h=9dfdf620c91c9899d26a139272cdc038f86f1b58;hb=83f8124af58307eae378846c9746b5d769673474;hp=628c5d613ebff22f7ceff4ea74ac945dbca66f53;hpb=34964d5660d2c81ddbd9fa7659277e4944f972ce;p=xonotic%2Fdarkplaces.git diff --git a/sys.h b/sys.h index 628c5d61..9dfdf620 100644 --- a/sys.h +++ b/sys.h @@ -68,7 +68,7 @@ char *Sys_TimeString(const char *timeformat); // /// an error will cause the entire program to exit -void Sys_Error (const char *error, ...) DP_FUNC_PRINTF(1); +void Sys_Error (const char *error, ...) DP_FUNC_PRINTF(1) DP_FUNC_NORETURN; /// (may) output text to terminal which launched program void Sys_PrintToTerminal(const char *text); @@ -83,6 +83,9 @@ void Sys_Quit (int returnvalue); * profiling to certain areas of the code, such as ingame performance without * regard for loading/shutdown performance (-profilegameonly on commandline) */ +#ifdef __cplusplus +extern "C" +#endif void Sys_AllowProfiling (qboolean enable); typedef struct sys_cleantime_s