File indexing completed on 2024-04-21 14:46:24

0001 /*
0002 ** gluos.h - operating system dependencies for GLU
0003 **
0004 */
0005 #ifdef __VMS
0006 #ifdef __cplusplus
0007 #pragma message disable nocordel
0008 #pragma message disable codeunreachable
0009 #pragma message disable codcauunr
0010 #endif
0011 #endif
0012 
0013 #ifdef __WATCOMC__
0014 /* Disable *lots* of warnings to get a clean build. I can't be bothered fixing the
0015  * code at the moment, as it is pretty ugly.
0016  */
0017 #pragma warning 7 10
0018 #pragma warning 13 10
0019 #pragma warning 14 10
0020 #pragma warning 367 10
0021 #pragma warning 379 10
0022 #pragma warning 726 10
0023 #pragma warning 836 10
0024 #endif
0025 
0026 #ifdef BUILD_FOR_SNAP
0027 
0028 #include <stdlib.h>
0029 #include <stdio.h>
0030 #include <malloc.h>
0031 
0032 #elif defined(_WIN32)
0033 
0034 #include <stdlib.h> /* For _MAX_PATH definition */
0035 #include <stdio.h>
0036 #include <malloc.h>
0037 
0038 #define WIN32_LEAN_AND_MEAN
0039 #define NOGDI
0040 #define NOIME
0041 #define NOMINMAX
0042 
0043 #ifdef __MINGW64_VERSION_MAJOR
0044 #undef _WIN32_WINNT
0045 #endif
0046 
0047 #ifndef _WIN32_WINNT
0048 /* XXX: Workaround a bug in mingw-w64's headers when NOGDI is set and
0049  * _WIN32_WINNT >= 0x0600 */
0050 #define _WIN32_WINNT 0x0400
0051 #endif
0052 #ifndef STRICT
0053 #define STRICT 1
0054 #endif
0055 
0056 #include <windows.h>
0057 
0058 /* Disable warnings */
0059 #if defined(_MSC_VER)
0060 #pragma warning(disable : 4101)
0061 #pragma warning(disable : 4244)
0062 #pragma warning(disable : 4761)
0063 #endif
0064 
0065 #if defined(_MSC_VER) && _MSC_VER >= 1200 && _MSC_VER < 1300
0066 #pragma comment(linker, "/OPT:NOWIN98")
0067 #endif
0068 
0069 #ifndef WINGDIAPI
0070 #define WINGDIAPI
0071 #endif
0072 
0073 #elif defined(__OS2__)
0074 
0075 #include <stdlib.h>
0076 #include <stdio.h>
0077 #include <malloc.h>
0078 #define WINGDIAPI
0079 
0080 #else
0081 
0082 /* Disable Microsoft-specific keywords */
0083 #define GLAPIENTRY
0084 #define WINGDIAPI
0085 
0086 #endif