Re: [Qemu-devel] [PATCH] win32: provide separate macros for weak decls and definitions

2012-09-04 Thread Richard Henderson
On 08/14/2012 08:17 PM, Anthony Liguori wrote: > Strangely, gcc on Linux absolutely does not want the declaration to be marked > as weak. Err... that's incorrect. > +CpuDefinitionInfoList GCC_WEAK_DECL *arch_query_cpu_definitions(Error > **errp); ... and probably seen because you put the attrib

[Qemu-devel] [PATCH] win32: provide separate macros for weak decls and definitions

2012-08-14 Thread Anthony Liguori
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 --- arch_init.h |4