summaryrefslogtreecommitdiff
path: root/qmp.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2012-10-29 15:11:30 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2012-10-30 09:18:43 +0100
commit67d223be90178f7142b4f566358cea446af8df74 (patch)
treef8ac837c1e6ef1629810bc646256efc4dbf4da36 /qmp.c
parentf3192e8fb28529dd4fd777f916c437f49098ad39 (diff)
downloadqemu-67d223be90178f7142b4f566358cea446af8df74.tar.gz
qemu-67d223be90178f7142b4f566358cea446af8df74.tar.bz2
qemu-67d223be90178f7142b4f566358cea446af8df74.zip
compiler: use weak aliases to provide default definitions
This is simpler and more portable. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'qmp.c')
-rw-r--r--qmp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/qmp.c b/qmp.c
index 31bc3bfdd1..df952b60bc 100644
--- a/qmp.c
+++ b/qmp.c
@@ -466,11 +466,12 @@ DevicePropertyInfoList *qmp_device_list_properties(const char *typename,
return prop_list;
}
-CpuDefinitionInfoList GCC_WEAK *arch_query_cpu_definitions(Error **errp)
+static CpuDefinitionInfoList *default_arch_query_cpu_definitions(Error **errp)
{
error_set(errp, QERR_NOT_SUPPORTED);
return NULL;
}
+QEMU_WEAK_ALIAS(arch_query_cpu_definitions, default_arch_query_cpu_definitions);
CpuDefinitionInfoList *qmp_query_cpu_definitions(Error **errp)
{