]> git.proxmox.com Git - mirror_qemu.git/commitdiff
win32: Avoid compiler warning (WIN32_LEAN_AND_MEAN redefined)
authorStefan Weil <weil@mail.berlios.de>
Thu, 1 Apr 2010 04:20:07 +0000 (04:20 +0000)
committerBlue Swirl <blauwirbel@gmail.com>
Sun, 15 Aug 2010 09:46:12 +0000 (09:46 +0000)
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 removing the definition of WIN32_LEAN_AND_MEAN
before including SDL_syswm.h.

[blauwirbel@gmail.com: rebased]
Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
ui/sdl.c

index 0072680f4c9907e9a731694b7be8bd2782caba2e..f599d424251221da7d357db39c3949f18e331a19 100644 (file)
--- a/ui/sdl.c
+++ b/ui/sdl.c
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  * THE SOFTWARE.
  */
+
+/* Avoid compiler warning because macro is redefined in SDL_syswm.h. */
+#undef WIN32_LEAN_AND_MEAN
+
 #include <SDL.h>
 #include <SDL_syswm.h>