summaryrefslogtreecommitdiffstats
path: root/src/glu/sgi/libutil/mipmap.c
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2011-04-27 19:05:29 +0100
committerJosé Fonseca <[email protected]>2011-04-27 19:06:07 +0100
commitfa7a051c251552c4581caadce772a29c64f6a850 (patch)
treeec14ba70211495eaf2565f9c5b6a87e457741253 /src/glu/sgi/libutil/mipmap.c
parentf9cc6acbfa6f6f91b29a0601436d91a330fdce79 (diff)
sgi: Fix MSVC build.
Including windows.h was ineffective on MSVC because we define the NOGDI macro, which skips the wingdi.h include. Unsetting NOGDI is also a bad idea because it causes all sort of symbol clashes with SGI code. The real problem is that WINGDAPI was not being defined, also due to NOGDI, so simply define it to blank if not done already. This seems to make everybody happy.
Diffstat (limited to 'src/glu/sgi/libutil/mipmap.c')
-rw-r--r--src/glu/sgi/libutil/mipmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glu/sgi/libutil/mipmap.c b/src/glu/sgi/libutil/mipmap.c
index 415dfaa5411..c475c96a208 100644
--- a/src/glu/sgi/libutil/mipmap.c
+++ b/src/glu/sgi/libutil/mipmap.c
@@ -6631,7 +6631,7 @@ static TexImage3Dproc pTexImage3D = 0;
# include <dlfcn.h>
# include <sys/types.h>
#else
-# include <windows.h>
+ WINGDIAPI PROC WINAPI wglGetProcAddress(LPCSTR);
#endif
static void gluTexImage3D( GLenum target, GLint level,