Kstars

src/gluos.h
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
13#ifdef __WATCOMC__
14/* Disable *lots* of warnings to get a clean build. I can't be bothered fixing the
15 * code at the moment, as it is pretty ugly.
16 */
17#pragma warning 7 10
18#pragma warning 13 10
19#pragma warning 14 10
20#pragma warning 367 10
21#pragma warning 379 10
22#pragma warning 726 10
23#pragma warning 836 10
24#endif
25
26#ifdef BUILD_FOR_SNAP
27
28#include <stdlib.h>
29#include <stdio.h>
30#include <malloc.h>
31
32#elif defined(_WIN32)
33
34#include <stdlib.h> /* For _MAX_PATH definition */
35#include <stdio.h>
36#include <malloc.h>
37
38#define WIN32_LEAN_AND_MEAN
39#define NOGDI
40#define NOIME
41#define NOMINMAX
42
43#ifdef __MINGW64_VERSION_MAJOR
44#undef _WIN32_WINNT
45#endif
46
47#ifndef _WIN32_WINNT
48/* XXX: Workaround a bug in mingw-w64's headers when NOGDI is set and
49 * _WIN32_WINNT >= 0x0600 */
50#define _WIN32_WINNT 0x0400
51#endif
52#ifndef STRICT
53#define STRICT 1
54#endif
55
56#include <windows.h>
57
58/* Disable warnings */
59#if defined(_MSC_VER)
60#pragma warning(disable : 4101)
61#pragma warning(disable : 4244)
62#pragma warning(disable : 4761)
63#endif
64
65#if defined(_MSC_VER) && _MSC_VER >= 1200 && _MSC_VER < 1300
66#pragma comment(linker, "/OPT:NOWIN98")
67#endif
68
69#ifndef WINGDIAPI
70#define WINGDIAPI
71#endif
72
73#elif defined(__OS2__)
74
75#include <stdlib.h>
76#include <stdio.h>
77#include <malloc.h>
78#define WINGDIAPI
79
80#else
81
82/* Disable Microsoft-specific keywords */
83#define GLAPIENTRY
84#define WINGDIAPI
85
86#endif
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:38:43 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.