summaryrefslogtreecommitdiffstats
path: root/tools/gfx/nvapi/nvapi-include.h
blob: 513977048aeb1719924520a55db4ad6bbae9ce21 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// nvapi-include.h
#pragma once

// A helper that makes the NVAPI available across targets

#ifdef GFX_NVAPI
// On windows if we include NVAPI, we must include windows.h first

#   ifdef _WIN32
#       pragma push_macro("WIN32_LEAN_AND_MEAN")
#       pragma push_macro("NOMINMAX")
#       undef WIN32_LEAN_AND_MEAN
#       define WIN32_LEAN_AND_MEAN
#       undef NOMINMAX
#       define NOMINMAX
#       include <windows.h>
#       pragma pop_macro("NOMINMAX")
#       pragma pop_macro("WIN32_LEAN_AND_MEAN")
#   endif

#   include <nvapi.h>
#   include <nvShaderExtnEnums.h>

#endif