diff options
author | Anthony Liguori <aliguori@us.ibm.com> | 2012-08-14 22:17:36 -0500 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2012-08-15 13:26:03 -0500 |
commit | 76b64a7aa84965ee9c7594058a43b00c2a14c72e (patch) | |
tree | ee5e9b954e92ace0090d47aa811c76129da8e34f /target-ppc/translate_init.c | |
parent | d1186a33efa74c91b01e1b5d9918c61d109f1b54 (diff) |
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 <aliguori@us.ibm.com>
Diffstat (limited to 'target-ppc/translate_init.c')
-rw-r--r-- | target-ppc/translate_init.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c index 6fe4168dc0..fba2b42427 100644 --- a/target-ppc/translate_init.c +++ b/target-ppc/translate_init.c @@ -27,7 +27,7 @@ #include "gdbstub.h" #include <kvm.h> #include "kvm_ppc.h" -#include "qmp-commands.h" +#include "arch_init.h" //#define PPC_DUMP_CPU //#define PPC_DEBUG_SPR @@ -10346,7 +10346,7 @@ void ppc_cpu_list (FILE *f, fprintf_function cpu_fprintf) } } -CpuDefinitionInfoList *qmp_query_cpu_definitions(Error **errp) +CpuDefinitionInfoList *arch_query_cpu_definitions(Error **errp) { CpuDefinitionInfoList *cpu_list = NULL; int i; |