Re: [Qemu-devel] Re: [PATCH] win32: Avoid compiler warning (WIN32_LEAN_AND_MEAN redefined)

2010-05-10 Thread Paolo Bonzini
> 3. Change the definition of WIN32_LEAN_AND_MEAN in configure/make. > > Solution 3 is a very simple change. It works for the moment, > but would raise warnings when a library header file with a > different definition of WIN32_LEAN_AND_MEAN is used. > When I scanned the system headers of my mingw3

[Qemu-devel] Re: [PATCH] win32: Avoid compiler warning (WIN32_LEAN_AND_MEAN redefined)

2010-05-08 Thread Stefan Weil
Am 21.04.2010 22:13, schrieb Stefan Weil: Stefan Weil schrieb: configure adds the macro WIN32_LEAN_AND_MEAN to QEMU_CFLAGS, and SDL_syswm.h defines it, too. This results in a compiler warning (redefinition of WIN32_LEAN_AND_MEAN in SDL_syswm.h. That warning prevents compilations for win32 with

Re: [Qemu-devel] Re: [PATCH] win32: Avoid compiler warning (WIN32_LEAN_AND_MEAN redefined)

2010-04-22 Thread Richard Henderson
On 04/22/2010 03:11 AM, Paolo Bonzini wrote: > There is > > #define WIN32_LEAN_AND_MEAN > > in SDL_syswm.h and -DWIN32_LEAN_AND_MEAN in configure, so that should be > okay. -DFOO => #define FOO 1 -DFOO= => #define FOO r~

[Qemu-devel] Re: [PATCH] win32: Avoid compiler warning (WIN32_LEAN_AND_MEAN redefined)

2010-04-22 Thread Paolo Bonzini
On 04/21/2010 10:13 PM, Stefan Weil wrote: Stefan Weil schrieb: configure adds the macro WIN32_LEAN_AND_MEAN to QEMU_CFLAGS, and SDL_syswm.h defines it, too. This results in a compiler warning (redefinition of WIN32_LEAN_AND_MEAN in SDL_syswm.h. That warning prevents compilations for win32 with

[Qemu-devel] Re: [PATCH] win32: Avoid compiler warning (WIN32_LEAN_AND_MEAN redefined)

2010-04-21 Thread Stefan Weil
Stefan Weil schrieb: > configure adds the macro WIN32_LEAN_AND_MEAN to > QEMU_CFLAGS, and SDL_syswm.h defines it, too. > > This results in a compiler warning (redefinition of > WIN32_LEAN_AND_MEAN in SDL_syswm.h. That warning prevents > compilations for win32 with warning = error). > > Fix this by