mirror of https://github.com/xemu-project/xemu.git
rename HAVE_MACHINE_BSWAP_H to CONFIG_MACHINE_BSWAP_H
Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
56ffaf2548
commit
5735147e5f
4
bswap.h
4
bswap.h
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
|
|
||||||
#ifdef HAVE_MACHINE_BSWAP_H
|
#ifdef CONFIG_MACHINE_BSWAP_H
|
||||||
#include <sys/endian.h>
|
#include <sys/endian.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <machine/bswap.h>
|
#include <machine/bswap.h>
|
||||||
|
@ -64,7 +64,7 @@ static inline uint64_t bswap64(uint64_t x)
|
||||||
return bswap_64(x);
|
return bswap_64(x);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* ! HAVE_MACHINE_BSWAP_H */
|
#endif /* ! CONFIG_MACHINE_BSWAP_H */
|
||||||
|
|
||||||
static inline void bswap16s(uint16_t *s)
|
static inline void bswap16s(uint16_t *s)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1550,7 +1550,7 @@ EOF
|
||||||
int main(void) { return bswap32(0); }
|
int main(void) { return bswap32(0); }
|
||||||
EOF
|
EOF
|
||||||
if $cc $ARCH_CFLAGS -o $TMPE $TMPC >/dev/null 2> /dev/null ; then
|
if $cc $ARCH_CFLAGS -o $TMPE $TMPC >/dev/null 2> /dev/null ; then
|
||||||
echo "#define HAVE_MACHINE_BSWAP_H 1" >> $config_host_h
|
echo "#define CONFIG_MACHINE_BSWAP_H 1" >> $config_host_h
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue