[PSDK]
authorAmine Khaldi <amine.khaldi@reactos.org>
Sun, 12 Sep 2010 14:51:32 +0000 (14:51 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Sun, 12 Sep 2010 14:51:32 +0000 (14:51 +0000)
- Properly guard d3d9types.h and d3dtypes.h against DIRECT3D_VERSION versions.

svn path=/trunk/; revision=48754

reactos/include/psdk/d3d9types.h
reactos/include/psdk/d3dtypes.h

index ba800bf..7b338da 100644 (file)
@@ -21,6 +21,8 @@
 #ifndef __WINE_D3D9TYPES_H
 #define __WINE_D3D9TYPES_H
 
+#if(DIRECT3D_VERSION >= 0x0900)
+
 #pragma pack(push, 4)
 
 /*****************************************************************************
@@ -1586,4 +1588,6 @@ typedef enum _D3DCOMPOSERECTSOP{
 
 #pragma pack(pop)
 
+#endif /* DIRECT3D_VERSION >= 0x0900 */
+
 #endif /* __WINE_D3D9TYPES_H */
index dc36d4f..5519b53 100644 (file)
 
 /* #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>