Browse Source

mingw: fix error __USE_MINGW_ANSI_STDIO redefined

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>
remotes/github/staging
Marc-André Lureau 6 years ago
committed by Laurent Vivier
parent
commit
662770af7c
  1. 3
      migration/dirtyrate.c
  2. 1
      tests/test-bitmap.c

3
migration/dirtyrate.c

@ -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"

1
tests/test-bitmap.c

@ -8,7 +8,6 @@
* Author: Peter Xu <peterx@redhat.com>
*/
#include <stdlib.h>
#include "qemu/osdep.h"
#include "qemu/bitmap.h"

Loading…
Cancel
Save