From 6dfcb29664d044faa709ee7edb9a79bd0db0eff1 Mon Sep 17 00:00:00 2001 From: Matteo Bruni Date: Tue, 10 Mar 2015 19:29:36 +0100 Subject: [PATCH] include: Pack structures to 4-bytes alignment on x86 in D3D headers. --- include/d3d8caps.h | 8 ++++++++ include/d3d8types.h | 7 +++++++ include/d3dcaps.h | 8 +++++++- include/d3dtypes.h | 8 ++++++++ 4 files changed, 30 insertions(+), 1 deletion(-) diff --git a/include/d3d8caps.h b/include/d3d8caps.h index 019d346c364..d11a46fbc3d 100644 --- a/include/d3d8caps.h +++ b/include/d3d8caps.h @@ -19,6 +19,10 @@ #ifndef __WINE_D3D8CAPS_H #define __WINE_D3D8CAPS_H +#ifdef __i386__ +#include +#endif + /* * Definitions */ @@ -283,4 +287,8 @@ typedef struct _D3DCAPS8 { float MaxPixelShaderValue; } D3DCAPS8; +#ifdef __i386__ +#include +#endif + #endif /* __WINE_D3D8CAPS_H */ diff --git a/include/d3d8types.h b/include/d3d8types.h index e848a459114..0ffa2dbd32d 100644 --- a/include/d3d8types.h +++ b/include/d3d8types.h @@ -19,6 +19,9 @@ #ifndef __WINE_D3D8TYPES_H #define __WINE_D3D8TYPES_H +#ifdef __i386__ +#include +#endif /***************************************************************************** * Direct 3D v8 #defines @@ -1210,4 +1213,8 @@ typedef struct _D3DVOLUME_DESC { UINT Depth; } D3DVOLUME_DESC; +#ifdef __i386__ +#include +#endif + #endif /* __WINE_D3D8TYPES_H */ diff --git a/include/d3dcaps.h b/include/d3dcaps.h index c36577ecf55..4fc76ba5253 100644 --- a/include/d3dcaps.h +++ b/include/d3dcaps.h @@ -21,6 +21,10 @@ #include +#ifdef __i386__ +#include +#endif + typedef struct _D3DTRANSFORMCAPS { DWORD dwSize; DWORD dwCaps; @@ -428,6 +432,8 @@ typedef struct _D3DDEVINFO_TEXTURING { DWORD dwNumGetDCs; } D3DDEVINFO_TEXTURING, *LPD3DDEVINFO_TEXTURING; - +#ifdef __i386__ +#include +#endif #endif diff --git a/include/d3dtypes.h b/include/d3dtypes.h index 4119c0f0fcf..75aee5508ec 100644 --- a/include/d3dtypes.h +++ b/include/d3dtypes.h @@ -29,6 +29,10 @@ #include #include +#ifdef __i386__ +#include +#endif + #define D3DVALP(val, prec) ((float)(val)) #define D3DVAL(val) ((float)(val)) #define D3DDivide(a, b) (float)((double) (a) / (double) (b)) @@ -1356,4 +1360,8 @@ typedef enum _D3DTEXTURETRANSFORMFLAGS { #define D3DFVF_TEXCOORDSIZE4(CoordIndex) (D3DFVF_TEXTUREFORMAT4 << (CoordIndex*2 + 16)) #define D3DFVF_TEXCOORDSIZE1(CoordIndex) (D3DFVF_TEXTUREFORMAT1 << (CoordIndex*2 + 16)) +#ifdef __i386__ +#include +#endif + #endif -- 2.11.4.GIT