mingw: fix error __USE_MINGW_ANSI_STDIO redefined
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Thu, 8 Oct 2020 16:59:53 +0000 (20:59 +0400)
committerLaurent Vivier <laurent@vivier.eu>
Tue, 13 Oct 2020 11:33:46 +0000 (13:33 +0200)
Always put osdep.h first, and remove redundant stdlib.h include.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Stefan Weil <sw@weilnetz.de>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20201008165953.884599-1-marcandre.lureau@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
migration/dirtyrate.c
tests/test-bitmap.c

index 68577ef25028c04db0b888f3bbedefc972028d00..47f761e67acbb537023f7e4a238bb347cc1a1583 100644 (file)
@@ -10,8 +10,9 @@
  * See the COPYING file in the top-level directory.
  */
 
-#include <zlib.h>
 #include "qemu/osdep.h"
+
+#include <zlib.h>
 #include "qapi/error.h"
 #include "cpu.h"
 #include "qemu/config-file.h"
index 2f5b71458a3df1d724b27023a510ed10bdb9e370..8db4f67883fe60159cae9d7ce023c21ff9655bb4 100644 (file)
@@ -8,7 +8,6 @@
  * Author: Peter Xu <peterx@redhat.com>
  */
 
-#include <stdlib.h>
 #include "qemu/osdep.h"
 #include "qemu/bitmap.h"