diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2016-02-23 11:58:02 +0000 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2016-02-23 12:43:05 +0000 |
commit | b1e34d1c3a9059e87719634bfc4db53174d63e14 (patch) | |
tree | e596bc6590cb476a94a1bf8f39d935a562cd8a87 | |
parent | d57106a4b6a2213a6c8ccb8800fcc8ce8afa1a14 (diff) |
osdep.h: Include config-target.h if NEED_CPU_H is defined
NEED_CPU_H is the define we use to distinguish per-target object
compilation from common object compilation. For the former, we must
also include config-target.h so that the .c files see the necessary
CONFIG_ constants.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Eric Blake <eblake@redhat.com>
-rw-r--r-- | include/qemu/osdep.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/qemu/osdep.h b/include/qemu/osdep.h index 7c3a07388c..4538fdca42 100644 --- a/include/qemu/osdep.h +++ b/include/qemu/osdep.h @@ -26,6 +26,9 @@ #define QEMU_OSDEP_H #include "config-host.h" +#ifdef NEED_CPU_H +#include "config-target.h" +#endif #include "qemu/compiler.h" /* Older versions of C++ don't get definitions of various macros from |