windows.cfg: Improved support for more types.

This commit is contained in:
orbitcowboy 2018-05-16 16:26:40 +02:00
parent d567b878ba
commit 3ad8fa5288
2 changed files with 24 additions and 1 deletions

View File

@ -925,6 +925,21 @@
<platform type="win32W"/> <platform type="win32W"/>
<platform type="win64"/> <platform type="win64"/>
</platformtype> </platformtype>
<platformtype name="PULONG32" value="int">
<unsigned/>
<pointer/>
<platform type="win32A"/>
<platform type="win32W"/>
<platform type="win64"/>
</platformtype>
<platformtype name="PULONG64" value="long">
<unsigned/>
<long/>
<pointer/>
<platform type="win32A"/>
<platform type="win32W"/>
<platform type="win64"/>
</platformtype>
<platformtype name="ULONGLONG" value="long"> <platformtype name="ULONGLONG" value="long">
<unsigned/> <unsigned/>
<long/> <long/>
@ -5293,7 +5308,7 @@ HFONT CreateFont(
<define name="DECLARE_DYNCREATE(x)" value=""/> <define name="DECLARE_DYNCREATE(x)" value=""/>
<define name="INVALID_HANDLE_VALUE" value="0"/> <define name="INVALID_HANDLE_VALUE" value="0"/>
<define name="INVALID_SOCKET" value="0"/> <define name="INVALID_SOCKET" value="0"/>
<define name="WINAPI" value=""/> <define name="WINAPI" value="__stdcall"/>
<define name="__pragma(x)" value=""/> <define name="__pragma(x)" value=""/>
<define name="_countof(_Array)" value="(sizeof(_Array) / sizeof(_Array[0]))"/> <define name="_countof(_Array)" value="(sizeof(_Array) / sizeof(_Array[0]))"/>
<define name="__wchar_t" value="wchar_t"/> <define name="__wchar_t" value="wchar_t"/>

View File

@ -6229,6 +6229,10 @@ private:
"PDWORD_PTR pdWordPtr;" "PDWORD_PTR pdWordPtr;"
"PDWORD32 pdWord32;" "PDWORD32 pdWord32;"
"PDWORD64 pdWord64;" "PDWORD64 pdWord64;"
"LONGLONG ll;"
"USN usn;"
"PULONG64 puLong64;"
"PULONG32 puLong32;"
"PFLOAT ptrToFloat;"; "PFLOAT ptrToFloat;";
const char expected[] = "int f ; " const char expected[] = "int f ; "
@ -6306,6 +6310,10 @@ private:
"long * pdWordPtr ; " "long * pdWordPtr ; "
"unsigned int * pdWord32 ; " "unsigned int * pdWord32 ; "
"unsigned long * pdWord64 ; " "unsigned long * pdWord64 ; "
"long long ll ; "
"long long usn ; "
"unsigned long long * puLong64 ; "
"unsigned int * puLong32 ; "
"float * ptrToFloat ;"; "float * ptrToFloat ;";
// These types should be defined the same on all Windows platforms // These types should be defined the same on all Windows platforms