]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sys_shared.c
make DP compile with C++ again
[xonotic/darkplaces.git] / sys_shared.c
index 91f72d41294aa9d14d6572ca6f3a09ee7b3a5d3b..683fe0b13aba7b008e1373ed019ac0a3d6e04374 100644 (file)
@@ -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
 }