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,7 +10,6 @@
* See the COPYING file in the top-level directory.
*
*/
#include "libqtest.h"
#include <glib.h>
#include <stdio.h>
@ -18,6 +17,7 @@
#include <stdlib.h>
#include <unistd.h>
#include "libqtest.h"
#include "qemu/bswap.h"
typedef struct TestCase TestCase;