]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - tools/quake2/common/threads.c
Centralise compile checks
[xonotic/netradiant.git] / tools / quake2 / common / threads.c
index 0b5f4ece2ba263f37da9e65d491b957c4a40c444..f45e185551cc48e749780dfeddbe72295cc5f63b 100644 (file)
@@ -19,7 +19,9 @@
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-#ifndef WIN32
+#include "globaldefs.h"
+
+#if !GDEF_OS_WINDOWS
 // The below define is necessary to use
 // pthreads extensions like pthread_mutexattr_settype
 #define _GNU_SOURCE
@@ -106,7 +108,7 @@ void RunThreadsOnIndividual( int workcnt, qboolean showpacifier, void ( *func )(
 
    ===================================================================
  */
-#ifdef WIN32
+#if GDEF_OS_WINDOWS
 
 #define USED
 
@@ -415,7 +417,7 @@ void RunThreadsOn( int workcnt, qboolean showpacifier, void ( *func )( int ) ){
    =======================================================================
  */
 
-#if defined( __linux__ ) || defined( __APPLE__ )
+#if GDEF_OS_LINUX || GDEF_OS_MACOS
 #define USED
 
 // Setting default Threads to 1