]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - tools/quake3/q3data/md3lib.c
Centralise compile checks
[xonotic/netradiant.git] / tools / quake3 / q3data / md3lib.c
index b4c7d93f4e454a56abb5e55fd6d05f6a55fa6bb1..4ad23e49e7274fd8bed13e9da7265102da42c670 100644 (file)
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
+#include "globaldefs.h"
 #include <assert.h>
-#ifdef WIN32
+#if GDEF_OS_WINDOWS
 #include <io.h>
 #endif
 #include "md3lib.h"
 
-#if defined ( __linux__ ) || defined ( __APPLE__ )
+#if GDEF_OS_LINUX || GDEF_OS_MACOS
 #define filelength(f) Q_filelength(f)
 #else
 #define filelength(f) filelength(fileno(f))