Skip to contentSkip to conversation

osdep: poison HOST_WORDS_BIGENDIAN

PATCH In review [email protected] 2 participants 2 messages Mar 16, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 11/27 osdep: poison HOST_WORDS_BIGENDIAN

From: Marc-André Lureau <[email protected]>

---
 include/qemu/osdep.h | 6 ++++++
 1 file changed, 6 insertions(+)
include/qemu/osdep.h +6 -0
index 322103aadbdc..7175ee53a217 100644
@@ -34,6 +34,12 @@
 #include "exec/poison.h"
 #endif
 
+/*
+ * HOST_WORDS_BIGENDIAN was replaced with HOST_BIG_ENDIAN. Prevent it from
+ * creeping back in.
+ */
+#pragma GCC poison HOST_WORDS_BIGENDIAN
+
 #include "qemu/compiler.h"
 
 /* Older versions of C++ don't get definitions of various macros from
Signature · 1 line
2.35.1.273.ge6ebfd0e8cbb
Reviewed-by on v1 11/27
#1 lore raw
Quoted 15 lines · On 16/3/22 10:53, [email protected] wrote:

From: Marc-André Lureau <[email protected]>

---
  include/qemu/osdep.h | 6 ++++++
  1 file changed, 6 insertions(+)
include/qemu/osdep.h +0 -0
index 322103aadbdc..7175ee53a217 100644
@@ -34,6 +34,12 @@
  #include "exec/poison.h"
  #endif

include/qemu/osdep.h line 45

Quoted 10 lines
include/qemu/osdep.h +6 -0
 
+/*
+ * HOST_WORDS_BIGENDIAN was replaced with HOST_BIG_ENDIAN. Prevent it from
+ * creeping back in.
+ */
+#pragma GCC poison HOST_WORDS_BIGENDIAN
+
  #include "qemu/compiler.h"
 
  /* Older versions of C++ don't get definitions of various macros from