- Properly guard d3d9types.h and d3dtypes.h against DIRECT3D_VERSION versions.
svn path=/trunk/; revision=48754
#ifndef __WINE_D3D9TYPES_H
#define __WINE_D3D9TYPES_H
+#if(DIRECT3D_VERSION >= 0x0900)
+
#pragma pack(push, 4)
/*****************************************************************************
#pragma pack(pop)
+#endif /* DIRECT3D_VERSION >= 0x0900 */
+
#endif /* __WINE_D3D9TYPES_H */
/* #include <windows.h> FIXME: Need to include for compatibility. Inclusion caused compile fail */
+#if (DIRECT3D_VERSION >= 0x0800)
+#error "You should not include d3dtypes.h when compiling for DX8 or newer."
+#endif
+
#include <float.h>
#include <ddraw.h>