From 76b64a7aa84965ee9c7594058a43b00c2a14c72e Mon Sep 17 00:00:00 2001 From: Anthony Liguori Date: Tue, 14 Aug 2012 22:17:36 -0500 Subject: win32: provide separate macros for weak decls and definitions mingw32 seems to want the declaration to also carry the weak attribute. Strangely, gcc on Linux absolutely does not want the declaration to be marked as weak. This may not be the right fix, but it seems to do the trick. Signed-off-by: Anthony Liguori --- qmp.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'qmp.c') diff --git a/qmp.c b/qmp.c index 6c1e4e8..8463922 100644 --- a/qmp.c +++ b/qmp.c @@ -468,8 +468,14 @@ DevicePropertyInfoList *qmp_device_list_properties(const char *typename, return prop_list; } -CpuDefinitionInfoList GCC_WEAK *qmp_query_cpu_definitions(Error **errp) +CpuDefinitionInfoList GCC_WEAK *arch_query_cpu_definitions(Error **errp) { error_set(errp, QERR_NOT_SUPPORTED); return NULL; } + +CpuDefinitionInfoList *qmp_query_cpu_definitions(Error **errp) +{ + return arch_query_cpu_definitions(errp); +} + -- cgit v1.1