tests: Distinguish between cross and non-cross Win32 builds.

Now the tests compile correctly on non-cross Win32 builds.
This commit is contained in:
Giovanni Mascellani
2023-01-18 14:31:07 +01:00
committed by Alexandre Julliard
parent 9c817e5e6d
commit 44d9e2d728
Notes: Alexandre Julliard 2023-01-24 22:27:46 +01:00
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/57
4 changed files with 21 additions and 4 deletions

View File

@@ -16,6 +16,23 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
/* Hack for MinGW-w64 headers.
*
* We want to use WIDL C inline wrappers because some methods
* in D3D12 interfaces return aggregate objects. Unfortunately,
* WIDL C inline wrappers are broken when used with MinGW-w64
* headers because FORCEINLINE expands to extern inline
* which leads to the "multiple storage classes in declaration
* specifiers" compiler error.
*/
#ifdef __MINGW32__
# include <_mingw.h>
# ifdef __MINGW64_VERSION_MAJOR
# undef __forceinline
# define __forceinline __inline__ __attribute__((__always_inline__,__gnu_inline__))
# endif
#endif
#define VK_NO_PROTOTYPES
#define COBJMACROS
#define INITGUID