Skip to contentSkip to conversation

mingw: fix error __USE_MINGW_ANSI_STDIO redefined

PATCH Applied [email protected] 5 participants 5 messages Oct 8, 2020 – Oct 12, 2020

lore
Share & tools
lore
#0 lore raw

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
index 68577ef250..47f761e67a 100644
@@ -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
index 2f5b71458a..8db4f67883 100644
@@ -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
Reviewed-by on v2 1/1
#2 lore raw
In reply to [email protected]

Am 08.10.20 um 18:59 schrieb [email protected]:

Quoted 30 lines

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
index 68577ef250..47f761e67a 100644
@@ -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
index 2f5b71458a..8db4f67883 100644

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

Reviewed-by on v2 1/1
#3 lore raw
In reply to [email protected]
Quoted 9 lines · On 10/8/20 6:59 PM, [email protected] wrote:

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(-)
#4 lore raw
In reply to [email protected]

Le 08/10/2020 à 18:59, [email protected] a écrit :

Quoted 31 lines

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
index 68577ef250..47f761e67a 100644
@@ -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
index 2f5b71458a..8db4f67883 100644

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