diff options
author | José Fonseca <[email protected]> | 2011-04-27 19:05:29 +0100 |
---|---|---|
committer | José Fonseca <[email protected]> | 2011-04-27 19:06:07 +0100 |
commit | fa7a051c251552c4581caadce772a29c64f6a850 (patch) | |
tree | ec14ba70211495eaf2565f9c5b6a87e457741253 /src/glu/sgi/include | |
parent | f9cc6acbfa6f6f91b29a0601436d91a330fdce79 (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/include')
-rw-r--r-- | src/glu/sgi/include/gluos.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/glu/sgi/include/gluos.h b/src/glu/sgi/include/gluos.h index 802aa8402d4..ac0a7874cec 100644 --- a/src/glu/sgi/include/gluos.h +++ b/src/glu/sgi/include/gluos.h @@ -60,6 +60,10 @@ #pragma comment(linker, "/OPT:NOWIN98") #endif +#ifndef WINGDIAPI +#define WINGDIAPI +#endif + #elif defined(__OS2__) #include <stdlib.h> |