=?UTF-8?Q?J=C3=B3zef=20Kucia=20?=: tests: Make sure that config.h is included before other headers.

Alexandre Julliard julliard at winehq.org
Thu Dec 14 08:03:45 CST 2017


Module: vkd3d
Branch: master
Commit: d100804e912ba050121c866f5647186af437ce16
URL:    http://source.winehq.org/git/vkd3d.git/?a=commit;h=d100804e912ba050121c866f5647186af437ce16

Author: Józef Kucia <jkucia at codeweavers.com>
Date:   Thu Dec 14 11:45:54 2017 +0100

tests: Make sure that config.h is included before other headers.

Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 include/private/vkd3d_test.h |  3 +--
 tests/d3d12.c                | 10 +++++-----
 2 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/include/private/vkd3d_test.h b/include/private/vkd3d_test.h
index 7eb72d3..c66b227 100644
--- a/include/private/vkd3d_test.h
+++ b/include/private/vkd3d_test.h
@@ -19,6 +19,7 @@
 #ifndef __VKD3D_TEST_H
 #define __VKD3D_TEST_H
 
+#include "vkd3d_common.h"
 #include <assert.h>
 #include <inttypes.h>
 #include <stdarg.h>
@@ -27,8 +28,6 @@
 #include <stdlib.h>
 #include <string.h>
 
-#include "vkd3d_common.h"
-
 static void vkd3d_test_main(int argc, char **argv);
 static const char *vkd3d_test_name;
 
diff --git a/tests/d3d12.c b/tests/d3d12.c
index 90f848f..caf94d2 100644
--- a/tests/d3d12.c
+++ b/tests/d3d12.c
@@ -36,11 +36,6 @@
 typedef int HRESULT;
 #endif
 
-#include <inttypes.h>
-#include <limits.h>
-#include <math.h>
-#include <time.h>
-
 #define COBJMACROS
 #define INITGUID
 #include "vkd3d_test.h"
@@ -48,6 +43,11 @@ typedef int HRESULT;
 #define WIDL_C_INLINE_WRAPPERS
 #include "d3d12.h"
 
+#include <inttypes.h>
+#include <limits.h>
+#include <math.h>
+#include <time.h>
+
 #ifdef _WIN32
 # include "dxgi1_4.h"
 #else




More information about the wine-cvs mailing list