gluos.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. /*
  2. ** gluos.h - operating system dependencies for GLU
  3. **
  4. */
  5. #ifdef __VMS
  6. #ifdef __cplusplus
  7. #pragma message disable nocordel
  8. #pragma message disable codeunreachable
  9. #pragma message disable codcauunr
  10. #endif
  11. #endif
  12. #ifdef __WATCOMC__
  13. /* Disable *lots* of warnings to get a clean build. I can't be bothered fixing the
  14. * code at the moment, as it is pretty ugly.
  15. */
  16. #pragma warning 7 10
  17. #pragma warning 13 10
  18. #pragma warning 14 10
  19. #pragma warning 367 10
  20. #pragma warning 379 10
  21. #pragma warning 726 10
  22. #pragma warning 836 10
  23. #endif
  24. #ifdef BUILD_FOR_SNAP
  25. #include <stdlib.h>
  26. #include <stdio.h>
  27. #include <malloc.h>
  28. #elif defined(_WIN32)
  29. #include <stdlib.h> /* For _MAX_PATH definition */
  30. #include <stdio.h>
  31. #include <malloc.h>
  32. #define WIN32_LEAN_AND_MEAN
  33. #define NOGDI
  34. #define NOIME
  35. #define NOMINMAX
  36. #ifdef __MINGW64_VERSION_MAJOR
  37. #undef _WIN32_WINNT
  38. #endif
  39. #ifndef _WIN32_WINNT
  40. /* XXX: Workaround a bug in mingw-w64's headers when NOGDI is set and
  41. * _WIN32_WINNT >= 0x0600 */
  42. #define _WIN32_WINNT 0x0400
  43. #endif
  44. #ifndef STRICT
  45. #define STRICT 1
  46. #endif
  47. #include <windows.h>
  48. /* Disable warnings */
  49. #if defined(_MSC_VER)
  50. #pragma warning(disable : 4101)
  51. #pragma warning(disable : 4244)
  52. #pragma warning(disable : 4761)
  53. #endif
  54. #if defined(_MSC_VER) && _MSC_VER >= 1200 && _MSC_VER < 1300
  55. #pragma comment(linker, "/OPT:NOWIN98")
  56. #endif
  57. #ifndef WINGDIAPI
  58. #define WINGDIAPI
  59. #endif
  60. #elif defined(__OS2__)
  61. #include <stdlib.h>
  62. #include <stdio.h>
  63. #include <malloc.h>
  64. #define WINGDIAPI
  65. #else
  66. /* Disable Microsoft-specific keywords */
  67. #define GLAPIENTRY
  68. #define WINGDIAPI
  69. #endif