qtest: Include system headers before user headers

It is dangerous to include user headers before system headers since user
macros can affect system headers.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
This commit is contained in:
Stefan Hajnoczi 2014-02-08 11:41:07 +01:00 committed by Andreas Färber
parent e41b509d68
commit 91f32b0c92
7 changed files with 21 additions and 19 deletions

View file

@ -10,8 +10,6 @@
* See the COPYING file in the top-level directory.
*
*/
#include "libqtest.h"
#include "hw/timer/mc146818rtc_regs.h"
#include <glib.h>
#include <stdio.h>
@ -19,6 +17,9 @@
#include <stdlib.h>
#include <unistd.h>
#include "libqtest.h"
#include "hw/timer/mc146818rtc_regs.h"
static uint8_t base = 0x70;
static int bcd2dec(int value)