Skip to contentSkip to conversation

bswap.h: build fix

PATCH Applied Christoph Egger 2 participants 2 messages Sep 13, 2011 – Sep 16, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bswap.h: build fix

qemu build fails when CONFIG_MACHINE_BSWAP_H is defined because float32, float64, etc. are not defined. This makes qemu build.

bswap.h +1 -2
index f41bebe..cc7f84d 100644
@@ -4,6 +4,7 @@
 #include "config-host.h"
 
 #include <inttypes.h>
+#include "softfloat.h"
 
 #ifdef CONFIG_MACHINE_BSWAP_H
 #include <sys/endian.h>
@@ -11,8 +12,6 @@
 #include <machine/bswap.h>
 #else
 
-#include "softfloat.h"
-
 #ifdef CONFIG_BYTESWAP_H
 #include <byteswap.h>
 #else
Signature · 6 lines
---to satisfy European Law for business letters:
Advanced Micro Devices GmbH
Einsteinring 24, 85689 Dornach b. Muenchen
Geschaeftsfuehrer: Alberto Bozzo, Andrew Bowd
Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen
Registergericht Muenchen, HRB Nr. 43632
#1 lore raw
Quoted 6 lines · Christoph Egger

qemu build fails when CONFIG_MACHINE_BSWAP_H is defined because float32, float64, etc. are not defined. This makes qemu build.

Applied. Thanks.

Regards,

Anthony Liguori

Quoted 25 lines
bswap.h +1 -2
index f41bebe..cc7f84d 100644
@@ -4,6 +4,7 @@
 #include "config-host.h"
 
 #include <inttypes.h>
+#include "softfloat.h"
 
 #ifdef CONFIG_MACHINE_BSWAP_H
 #include <sys/endian.h>
@@ -11,8 +12,6 @@
 #include <machine/bswap.h>
 #else
 
-#include "softfloat.h"
-
 #ifdef CONFIG_BYTESWAP_H
 #include <byteswap.h>
 #else