From 2f3b3e64b4238ad5bcc4a8e06a05a0ea0fdc4a2a Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Mon, 22 Aug 2022 01:18:37 +0000 Subject: [PATCH] [native] Add extra definitions needed for D3DCompiler --- include/native/windows/windows_base.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/include/native/windows/windows_base.h b/include/native/windows/windows_base.h index 747ef303f..7f0990031 100644 --- a/include/native/windows/windows_base.h +++ b/include/native/windows/windows_base.h @@ -96,7 +96,18 @@ typedef HANDLE HWND; typedef HANDLE HKEY; typedef DWORD COLORREF; +#if INTPTR_MAX == INT64_MAX +typedef int64_t INT_PTR; +typedef uint64_t UINT_PTR; +#else +typedef int32_t INT_PTR; +typedef uint32_t UINT_PTR; +#endif +typedef INT_PTR* PINT_PTR; +typedef UINT_PTR* PUINT_PTR; + typedef char* LPSTR; +typedef wchar_t* LPWSTR; typedef const char* LPCSTR; typedef const wchar_t* LPCWSTR;