check for _WIN32 and __WIN32__
authorBrian Paul <brian.paul@tungstengraphics.com>
Mon, 14 Apr 2008 19:40:43 +0000 (13:40 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Mon, 14 Apr 2008 19:41:39 +0000 (13:41 -0600)
src/glu/sgi/libutil/mipmap.c

index 44f519a4e21a29da1afaf2986b6cd806bd1396f6..d65b7f689f52716fdb0d26e6131164e4199f12c6 100644 (file)
@@ -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");