[D3DX9_36]
authorAmine Khaldi <amine.khaldi@reactos.org>
Mon, 20 Jan 2014 11:15:56 +0000 (11:15 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Mon, 20 Jan 2014 11:15:56 +0000 (11:15 +0000)
* Improve the GUIDs situation.
* Improve the main header.
CORE-7716

svn path=/trunk/; revision=61714

reactos/dll/directx/wine/d3dx9_36/CMakeLists.txt
reactos/dll/directx/wine/d3dx9_36/d3dx9_36_private.h
reactos/dll/directx/wine/d3dx9_36/guid.c [new file with mode: 0644]
reactos/dll/directx/wine/d3dx9_36/surface.c

index b4144ac..67206a4 100644 (file)
@@ -21,6 +21,7 @@ list(APPEND SOURCE
     util.c
     volume.c
     xfile.c
+    guid.c
     ${CMAKE_CURRENT_BINARY_DIR}/d3dx9_36_stubs.c
     ${CMAKE_CURRENT_BINARY_DIR}/d3dx9_36.def)
 
index 8d26b23..a505372 100644 (file)
 #include <config.h>
 #include <wine/port.h>
 
+#include <stdarg.h>
+
 #define WIN32_NO_STATUS
 #define _INC_WINDOWS
 #define COM_NO_WINDOWS_H
 
-#include <stdarg.h>
-
-#include <initguid.h>
-
 #define COBJMACROS
 #define NONAMELESSUNION
 #define NONAMELESSSTRUCT
+
 #include <windef.h>
 #include <winbase.h>
 #include <wingdi.h>
-#include <winnls.h>
 #include <winuser.h>
 #include <d3dx9.h>
 
diff --git a/reactos/dll/directx/wine/d3dx9_36/guid.c b/reactos/dll/directx/wine/d3dx9_36/guid.c
new file mode 100644 (file)
index 0000000..c43ee3c
--- /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 <d3dx9.h>
+
+/* NO CODE HERE, THIS IS JUST REQUIRED FOR THE GUID DEFINITIONS */
index 7455d19..bd141c1 100644 (file)
@@ -21,6 +21,8 @@
 #include "d3dx9_36_private.h"
 
 #include <ole2.h>
+
+#include <initguid.h>
 #include <wincodec.h>
 
 /* Wine-specific WIC GUIDs */