X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=sys_shared.c;h=683fe0b13aba7b008e1373ed019ac0a3d6e04374;hb=27ad2d336694ea2dc50035130bae321316e3936f;hp=91f72d41294aa9d14d6572ca6f3a09ee7b3a5d3b;hpb=a291cf2943ccfd719c62bf209c661baa13473335;p=xonotic%2Fdarkplaces.git diff --git a/sys_shared.c b/sys_shared.c index 91f72d41..683fe0b1 100644 --- a/sys_shared.c +++ b/sys_shared.c @@ -31,10 +31,16 @@ void Sys_Quit (int returnvalue) exit(returnvalue); } +#if defined(__linux__) || defined(__FreeBSD__) +#ifdef __cplusplus +extern "C" +#endif +int moncontrol(int); +#endif + void Sys_AllowProfiling(qboolean enable) { #if defined(__linux__) || defined(__FreeBSD__) -int moncontrol(int); moncontrol(enable); #endif }