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 --- target-i386/cpu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'target-i386/cpu.c') diff --git a/target-i386/cpu.c b/target-i386/cpu.c index 6d5d0d6e10..120a2e3d3e 100644 --- a/target-i386/cpu.c +++ b/target-i386/cpu.c @@ -28,7 +28,7 @@ #include "qemu-config.h" #include "qapi/qapi-visit-core.h" -#include "qmp-commands.h" +#include "arch_init.h" #include "hyperv.h" @@ -1126,7 +1126,7 @@ void x86_cpu_list(FILE *f, fprintf_function cpu_fprintf, const char *optarg) } } -CpuDefinitionInfoList *qmp_query_cpu_definitions(Error **errp) +CpuDefinitionInfoList *arch_query_cpu_definitions(Error **errp) { CpuDefinitionInfoList *cpu_list = NULL; x86_def_t *def; -- cgit 1.4.1