From 91f32b0c92fb18a403e48d3c8ffc14422a0c1ca5 Mon Sep 17 00:00:00 2001 From: Stefan Hajnoczi Date: Sat, 8 Feb 2014 11:41:07 +0100 Subject: qtest: Include system headers before user headers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It is dangerous to include user headers before system headers since user macros can affect system headers. Signed-off-by: Stefan Hajnoczi Signed-off-by: Andreas Färber --- tests/rtc-test.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tests/rtc-test.c') diff --git a/tests/rtc-test.c b/tests/rtc-test.c index f1b123fae1..4243624de6 100644 --- a/tests/rtc-test.c +++ b/tests/rtc-test.c @@ -10,8 +10,6 @@ * See the COPYING file in the top-level directory. * */ -#include "libqtest.h" -#include "hw/timer/mc146818rtc_regs.h" #include #include @@ -19,6 +17,9 @@ #include #include +#include "libqtest.h" +#include "hw/timer/mc146818rtc_regs.h" + static uint8_t base = 0x70; static int bcd2dec(int value) -- cgit 1.4.1