Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

64 lines
1.1 KiB

  1. #ifndef __GLOS_H__
  2. #define __GLOS_H__
  3. #ifdef NT
  4. #ifdef GLU32
  5. /*
  6. * Turn off a bunch of stuff so the we can compile the glu cleanly.
  7. *
  8. * NOGDI ; No gdi prototypes. (was having problems with 'Arc'
  9. * ; being defined as a class and as a function
  10. * NOMINMAX ; The glu code defines its own inline min, max functions
  11. */
  12. #define NOATOM
  13. #define NOGDI
  14. #define NOGDICAPMASKS
  15. #define NOMETAFILE
  16. #define NOMINMAX
  17. #define NOMSG
  18. #define NOOPENFILE
  19. #define NORASTEROPS
  20. #define NOSCROLL
  21. #define NOSOUND
  22. #define NOSYSMETRICS
  23. #define NOTEXTMETRIC
  24. #define NOWH
  25. #define NOCOMM
  26. #define NOKANJI
  27. #include <windows.h>
  28. /* Disable long to float conversion warning */
  29. #pragma warning (disable:4244)
  30. #else
  31. #include <windows.h>
  32. #endif /* GLU32 */
  33. #define GLOS_ALTCALL WINAPI /* Alternate calling convention */
  34. #define GLOS_CCALL WINAPIV /* C calling convention */
  35. #define GLOS_CALLBACK CALLBACK
  36. #endif /* NT */
  37. #ifdef UNIX
  38. /*
  39. * ALTCALL and CCALL are used in the x86 world
  40. * to specify calling conventions.
  41. */
  42. #define GLOS_ALTCALL
  43. #define GLOS_CCALL
  44. #define GLOS_CALLBACK
  45. #endif /* UNIX */
  46. #endif /* !__GLOS_H__ */