[D3D9]
authorAmine Khaldi <amine.khaldi@reactos.org>
Sun, 19 Jan 2014 10:46:55 +0000 (10:46 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Sun, 19 Jan 2014 10:46:55 +0000 (10:46 +0000)
* Improve the GUIDs situation.
CORE-7716

svn path=/trunk/; revision=61704

reactos/dll/directx/wine/d3d9/CMakeLists.txt
reactos/dll/directx/wine/d3d9/d3d9_private.h
reactos/dll/directx/wine/d3d9/guid.c [new file with mode: 0644]

index bdf9d7a..0465e1b 100644 (file)
@@ -20,6 +20,7 @@ list(APPEND SOURCE
     texture.c
     vertexdeclaration.c
     volume.c
     texture.c
     vertexdeclaration.c
     volume.c
+    guid.c
     version.rc
     ${CMAKE_CURRENT_BINARY_DIR}/d3d9_stubs.c
     ${CMAKE_CURRENT_BINARY_DIR}/d3d9.def)
     version.rc
     ${CMAKE_CURRENT_BINARY_DIR}/d3d9_stubs.c
     ${CMAKE_CURRENT_BINARY_DIR}/d3d9.def)
index f32ae4f..6ae0c4d 100644 (file)
 
 #include <config.h>
 
 
 #include <config.h>
 
+#include <assert.h>
+#include <stdarg.h>
+
 #define WIN32_NO_STATUS
 #define _INC_WINDOWS
 #define COM_NO_WINDOWS_H
 
 #define WIN32_NO_STATUS
 #define _INC_WINDOWS
 #define COM_NO_WINDOWS_H
 
-#include <assert.h>
-#include <stdarg.h>
-
 #define NONAMELESSUNION
 #define NONAMELESSSTRUCT
 #define COBJMACROS
 #define NONAMELESSUNION
 #define NONAMELESSSTRUCT
 #define COBJMACROS
+
 #include <windef.h>
 #include <winbase.h>
 #include <wingdi.h>
 #include <windef.h>
 #include <winbase.h>
 #include <wingdi.h>
@@ -42,7 +43,6 @@
 #include <wine/debug.h>
 WINE_DEFAULT_DEBUG_CHANNEL(d3d9);
 
 #include <wine/debug.h>
 WINE_DEFAULT_DEBUG_CHANNEL(d3d9);
 
-#include <initguid.h>
 #include <d3d9.h>
 #include <wine/wined3d.h>
 
 #include <d3d9.h>
 #include <wine/wined3d.h>
 
diff --git a/reactos/dll/directx/wine/d3d9/guid.c b/reactos/dll/directx/wine/d3d9/guid.c
new file mode 100644 (file)
index 0000000..5ccadd3
--- /dev/null
@@ -0,0 +1,15 @@
+/* DO NOT USE THE PRECOMPILED HEADER FOR THIS FILE! */
+
+#include <stdarg.h>
+
+#define WIN32_NO_STATUS
+#define _INC_WINDOWS
+#define COM_NO_WINDOWS_H
+
+#include <windef.h>
+#include <winbase.h>
+#include <wingdi.h>
+#include <initguid.h>
+#include <d3d9.h>
+
+/* NO CODE HERE, THIS IS JUST REQUIRED FOR THE GUID DEFINITIONS */