Skip to content

Commit

Permalink
osdep.h: Include config-target.h if NEED_CPU_H is defined
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Eric Blake <[email protected]>
  • Loading branch information
pm215 committed Feb 23, 2016
1 parent d57106a commit b1e34d1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/qemu/osdep.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b1e34d1

Please sign in to comment.