diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2012-11-02 15:43:20 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2012-11-02 13:07:54 -0500 |
commit | 1f001dc7bc9e435bf231a5b0edcad1c7c2bd6214 (patch) | |
tree | 531f1ce25757189d2ac450a42f8eea75cf50e6fb /qmp.c | |
parent | 2a0dfd004d9fae4adf2ccfcb2e3b1a76906b48a0 (diff) | |
download | qemu-1f001dc7bc9e435bf231a5b0edcad1c7c2bd6214.tar.gz qemu-1f001dc7bc9e435bf231a5b0edcad1c7c2bd6214.tar.bz2 qemu-1f001dc7bc9e435bf231a5b0edcad1c7c2bd6214.zip |
compiler: support Darwin weak references
Weakrefs only tell you if the symbol was defined elsewhere, so you
need a further check at runtime to pick the default definition
when needed.
This could be automated by the compiler, but it does not do it.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'qmp.c')
-rw-r--r-- | qmp.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -477,6 +477,8 @@ static CpuDefinitionInfoList *default_arch_query_cpu_definitions(Error **errp) return NULL; } QEMU_WEAK_ALIAS(arch_query_cpu_definitions, default_arch_query_cpu_definitions); +#define arch_query_cpu_definitions \ + QEMU_WEAK_REF(arch_query_cpu_definitions, default_arch_query_cpu_definitions) CpuDefinitionInfoList *qmp_query_cpu_definitions(Error **errp) { |