fix: redefinition of APIENTRY macro

Add guard for redifinition of APIENTRY in DirectX headers that could be
defined in other headers of this project like GL.

Fixes #648

Signed-off-by: Torsten Keßler <t.kessler@posteo.de>
This commit is contained in:
Torsten Keßler
2023-06-02 08:46:17 +02:00
committed by Compute-Runtime-Automation
parent b600410af2
commit e1b429db40

View File

@@ -75,6 +75,9 @@ typedef const wchar_t *LPCWSTR, *PCWSTR;
#define DECLSPEC_NOVTABLE
#define DECLSPEC_SELECTANY
#define EXTERN_C extern "C"
#ifdef APIENTRY
#undef APIENTRY
#endif
#define APIENTRY
#define OUT
#define IN