]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - tools/quake2/qdata_heretic2/images.c
h2data: fix build on macos
[xonotic/netradiant.git] / tools / quake2 / qdata_heretic2 / images.c
index 3b07715a8abeb2a7f3ab36d672ffd0131b595ce5..555303bc4c66861f1e1fe6e84d99a7cdcb8cd4dc 100644 (file)
@@ -1,5 +1,5 @@
 /*
-   Copyright (C) 1999-2006 Id Software, Inc. and contributors.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
    For a list of contributors, see the accompanying CONTRIBUTORS file.
 
    This file is part of GtkRadiant.
 
 #include "qdata.h"
 
-#ifdef _WIN32
+#if GDEF_OS_WINDOWS
  #include <windows.h>
 #endif
 
+#if GDEF_OS_MACOS && !defined( XWINDOWS )
+#include <OpenGL/gl.h>
+#else
 #include <GL/gl.h>
+#endif
 
 #if 1
 extern char     *g_outputDir;