summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2008-04-14 13:40:43 -0600
committerBrian Paul <brian.paul@tungstengraphics.com>2008-04-14 13:41:39 -0600
commit43be063efa2c41a5ac6c3fd250b4a0ad8ffe6761 (patch)
treeaec16baf310e82e90710920b9d0e78da98fe3203 /src
parentde16522f104eca7e9efc7eecbffa007b38c9c130 (diff)
downloadglu-43be063efa2c41a5ac6c3fd250b4a0ad8ffe6761.tar.gz
check for _WIN32 and __WIN32__
Diffstat (limited to 'src')
-rw-r--r--src/libutil/mipmap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libutil/mipmap.c b/src/libutil/mipmap.c
index 44f519a..d65b7f6 100644
--- a/src/libutil/mipmap.c
+++ b/src/libutil/mipmap.c
@@ -6627,7 +6627,7 @@ typedef void (GLAPIENTRY *TexImage3Dproc)( GLenum target, GLint level,
static TexImage3Dproc pTexImage3D = 0;
-#ifndef _WIN32
+#if !defined(_WIN32) && !defined(__WIN32__)
# include <dlfcn.h>
# include <sys/types.h>
#else
@@ -6642,7 +6642,7 @@ static void gluTexImage3D( GLenum target, GLint level,
const GLvoid *pixels )
{
if (!pTexImage3D) {
-#ifdef _WIN32
+#if defined(_WIN32) || defined(__WIN32__)
pTexImage3D = (TexImage3Dproc) wglGetProcAddress("glTexImage3D");
if (!pTexImage3D)
pTexImage3D = (TexImage3Dproc) wglGetProcAddress("glTexImage3DEXT");