mirror of
https://github.com/bkaradzic/bx.git
synced 2026-02-19 21:43:00 +01:00
Added dxsdk.patch to prevent MinGW errors.
This commit is contained in:
62
include/compat/mingw/dxsdk.patch
Normal file
62
include/compat/mingw/dxsdk.patch
Normal file
@@ -0,0 +1,62 @@
|
||||
diff -p Include.orig/d3d9.h Include/d3d9.h
|
||||
*** Include.orig/d3d9.h 2010-05-19 15:36:57.570669600 -0700
|
||||
--- Include/d3d9.h 2013-04-07 13:52:57.504138700 -0700
|
||||
*************** typedef struct IDirect3DQuery9 *LPDIRECT
|
||||
*** 2022,2029 ****
|
||||
|
||||
|
||||
/*********************
|
||||
! /* D3D9Ex interfaces
|
||||
! /*********************/
|
||||
|
||||
HRESULT WINAPI Direct3DCreate9Ex(UINT SDKVersion, IDirect3D9Ex**);
|
||||
|
||||
--- 2022,2029 ----
|
||||
|
||||
|
||||
/*********************
|
||||
! * D3D9Ex interfaces
|
||||
! *********************/
|
||||
|
||||
HRESULT WINAPI Direct3DCreate9Ex(UINT SDKVersion, IDirect3D9Ex**);
|
||||
|
||||
diff -p Include.orig/d3d9types.h Include/d3d9types.h
|
||||
*** Include.orig/d3d9types.h 2010-05-19 15:36:57.601870200 -0700
|
||||
--- Include/d3d9types.h 2013-04-07 13:52:17.746590200 -0700
|
||||
***************
|
||||
*** 19,24 ****
|
||||
--- 19,25 ----
|
||||
|
||||
#include <float.h>
|
||||
|
||||
+ #ifdef _MSC_VER
|
||||
#if _MSC_VER >= 1200
|
||||
#pragma warning(push)
|
||||
#endif
|
||||
***************
|
||||
*** 26,31 ****
|
||||
--- 27,33 ----
|
||||
#if defined(_X86_) || defined(_IA64_)
|
||||
#pragma pack(4)
|
||||
#endif
|
||||
+ #endif // _MSC_VER
|
||||
|
||||
// D3DCOLOR is equivalent to D3DFMT_A8R8G8B8
|
||||
#ifndef D3DCOLOR_DEFINED
|
||||
*************** typedef struct _D3DAES_CTR_IV
|
||||
*** 2404,2415 ****
|
||||
--- 2406,2419 ----
|
||||
#endif // !D3D_DISABLE_9EX
|
||||
/* -- D3D9Ex only */
|
||||
|
||||
+ #ifdef _MSC_VER
|
||||
#pragma pack()
|
||||
#if _MSC_VER >= 1200
|
||||
#pragma warning(pop)
|
||||
#else
|
||||
#pragma warning(default:4201)
|
||||
#endif
|
||||
+ #endif // _MSC_VER
|
||||
|
||||
#endif /* (DIRECT3D_VERSION >= 0x0900) */
|
||||
#endif /* _d3d9TYPES(P)_H_ */
|
||||
Reference in New Issue
Block a user