aboutsummaryrefslogtreecommitdiffstats
path: root/src/glu/sgi
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2008-04-14 13:40:43 -0600
committerBrian Paul <[email protected]>2008-04-14 13:41:39 -0600
commit3403f9fe1347712098f6b7e809928bba4a0d4af0 (patch)
tree6cf7606d2d136a6caa674ceff33543dd9aed855b /src/glu/sgi
parent7be8d5664aa3005f5ec19dd48b0719ed94e8b252 (diff)
check for _WIN32 and __WIN32__
Diffstat (limited to 'src/glu/sgi')
-rw-r--r--src/glu/sgi/libutil/mipmap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/glu/sgi/libutil/mipmap.c b/src/glu/sgi/libutil/mipmap.c
index 44f519a4e21..d65b7f689f5 100644
--- a/src/glu/sgi/libutil/mipmap.c
+++ b/src/glu/sgi/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");