aboutsummaryrefslogtreecommitdiff
path: root/qemu-os-posix.h
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2012-08-11 22:34:39 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2012-08-16 13:41:15 -0500
commita0b7cf6b6ecc91e730de5ac6a6f7f927d16f89ca (patch)
tree7e94944cefbe9bdf6f50be8702915da898591852 /qemu-os-posix.h
parentbbea4050802a2e7e0296a21823c0925782c02b93 (diff)
configure: Define OS_OBJECT_USE_OBJC=0 for MacOSX builds
MacOSX 10.8 ("Mountain Lion") defaults to trying to use automated reference counting on certain objects. This means that the system header files will use some Objective C syntax constructs even when compiling pure C, which confuses mainline gcc. Suppress this by setting OS_OBJECT_USE_OBJC=0. This avoids a compile error like this: In file included from /System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:5:0, from /usr/include/os/object.h:74, from /usr/include/dispatch/dispatch.h:48, from /System/Library/Frameworks/IOKit.framework/Headers/IOKitLib.h:56, from block/raw-posix.c:35: /System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:409:1: error: stray ‘@’ in program [with a large number of further run-on errors] Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'qemu-os-posix.h')
0 files changed, 0 insertions, 0 deletions