mingw: fix error __USE_MINGW_ANSI_STDIO redefined
PATCH v2 1/1 mingw: fix error __USE_MINGW_ANSI_STDIO redefined
From: Marc-André Lureau <[email protected]>
Always put osdep.h first, and remove redundant stdlib.h include.
--- migration/dirtyrate.c | 3 ++- tests/test-bitmap.c | 1 - 2 files changed, 2 insertions(+), 2 deletions(-)
migration/dirtyrate.c +2 -1
@@ -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"
tests/test-bitmap.c +0 -1
@@ -8,7 +8,6 @@* Author: Peter Xu <[email protected]> */ -#include <stdlib.h> #include "qemu/osdep.h" #include "qemu/bitmap.h"
Signature · 1 line
2.28.0
Quoted 11 lines · On Thu, 8 Oct 2020 at 18:03, <[email protected]> wrote:
From: Marc-André Lureau <[email protected]>
Always put
osdep.hfirst, and remove redundantstdlib.hinclude.Signed-off-by Marc-André Lureau <[email protected]>--- migration/dirtyrate.c | 3 ++- tests/test-bitmap.c | 1 - 2 files changed, 2 insertions(+), 2 deletions(-)
thanks
-- PMM
Am 08.10.20 um 18:59 schrieb [email protected]:
Quoted 30 lines
From: Marc-André Lureau <[email protected]>
Always put
osdep.hfirst, and remove redundantstdlib.hinclude.Signed-off-by Marc-André Lureau <[email protected]>--- migration/dirtyrate.c | 3 ++- tests/test-bitmap.c | 1 - 2 files changed, 2 insertions(+), 2 deletions(-)migration/dirtyrate.c +2
-1@@ -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" tests/test-bitmap.c +0
-0
tests/test-bitmap.c line 13
Quoted 7 lines
tests/test-bitmap.c +0
-1@@ -8,7 +8,6 @@* Author: Peter Xu <[email protected]> */ -#include <stdlib.h> #include "qemu/osdep.h" #include "qemu/bitmap.h"
Thank you,
Stefan
Quoted 9 lines · On 10/8/20 6:59 PM, [email protected] wrote:
From: Marc-André Lureau <[email protected]>
Always put
osdep.hfirst, and remove redundantstdlib.hinclude.Signed-off-by Marc-André Lureau <[email protected]>--- migration/dirtyrate.c | 3 ++- tests/test-bitmap.c | 1 - 2 files changed, 2 insertions(+), 2 deletions(-)
Laurent Vivier
AppliedLe 08/10/2020 à 18:59, [email protected] a écrit :
Quoted 31 lines
From: Marc-André Lureau <[email protected]>
Always put
osdep.hfirst, and remove redundantstdlib.hinclude.Signed-off-by Marc-André Lureau <[email protected]>--- migration/dirtyrate.c | 3 ++- tests/test-bitmap.c | 1 - 2 files changed, 2 insertions(+), 2 deletions(-)migration/dirtyrate.c +2
-1@@ -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" tests/test-bitmap.c +0
-0
tests/test-bitmap.c line 13
Quoted 7 lines
tests/test-bitmap.c +0
-1@@ -8,7 +8,6 @@* Author: Peter Xu <[email protected]> */ -#include <stdlib.h> #include "qemu/osdep.h" #include "qemu/bitmap.h"
Applied to my trivial-patches branch.
Thanks,
Laurent