]> git.proxmox.com Git - mirror_qemu.git/commit
Move HOST_LONG_BITS from qemu-common.h to qemu/osdep.h
authorMarkus Armbruster <armbru@redhat.com>
Fri, 11 Mar 2016 12:41:13 +0000 (13:41 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 22 Mar 2016 21:20:16 +0000 (22:20 +0100)
commita8139632161d7546218b696cada0a4f64cc78fb7
treec21aad2b0ab698e9882364f8608812f7e2461f6b
parenta7c4d9c7ca5178d32236fa5b31fa7fed4e4a7a9c
Move HOST_LONG_BITS from qemu-common.h to qemu/osdep.h

qemu-common.h should only be included by .c files.  Its file comment
explains why: "No header file should depend on qemu-common.h, as this
would easily lead to circular header dependencies."

One of the reasons for headers to include it is HOST_LONG_BITS.  Move
that to its more natural home qemu/osdep.h, to facilitate removing
these ill-advised includes later on.

This also lets us use HOST_LONG_BITS in bswap.h instead of duplicating
its definition there to avoid cyclic inclusion.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
include/qemu-common.h
include/qemu/bswap.h
include/qemu/osdep.h