Jolt Physics
A multi core friendly Game Physics Engine
Loading...
Searching...
No Matches
IncludeWindows.h
Go to the documentation of this file.
1// Jolt Physics Library (https://github.com/jrouwe/JoltPhysics)
2// SPDX-FileCopyrightText: 2025 Jorrit Rouwe
3// SPDX-License-Identifier: MIT
4
5#ifdef JPH_PLATFORM_WINDOWS
6
7JPH_SUPPRESS_WARNING_PUSH
8JPH_MSVC_SUPPRESS_WARNING(5039) // winbase.h(13179): warning C5039: 'TpSetCallbackCleanupGroup': pointer or reference to potentially throwing function passed to 'extern "C"' function under -EHc. Undefined behavior may occur if this function throws an exception.
9JPH_MSVC2026_PLUS_SUPPRESS_WARNING(4865) // wingdi.h(2806,1): '<unnamed-enum-DISPLAYCONFIG_OUTPUT_TECHNOLOGY_OTHER>': the underlying type will change from 'int' to '__int64' when '/Zc:enumTypes' is specified on the command line
10JPH_CLANG_SUPPRESS_WARNING("-Wreserved-macro-identifier") // Complains about _WIN32_WINNT being reserved
11
12#ifndef WINVER
13 #define WINVER 0x0A00 // Targeting Windows 10 and above
14#endif
15
16#ifndef _WIN32_WINNT
17 #define _WIN32_WINNT 0x0A00
18#endif
19
20#ifndef WIN32_LEAN_AND_MEAN
21 #define WIN32_LEAN_AND_MEAN
22#endif
23
24#ifndef NOMINMAX
25 #define NOMINMAX
26#endif
27
28#ifndef JPH_COMPILER_MINGW
29 #include <Windows.h>
30#else
31 #include <windows.h>
32#endif
33
34JPH_SUPPRESS_WARNING_POP
35
36#endif
#define JPH_MSVC2026_PLUS_SUPPRESS_WARNING(w)
Definition Core.h:332
#define JPH_CLANG_SUPPRESS_WARNING(w)
Definition Core.h:302
#define JPH_MSVC_SUPPRESS_WARNING(w)
Definition Core.h:330