mingw-cross-env-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Mingw-cross-env-list] warning: "WIN32_LEAN_AND_MEAN" redefined


From: Volker Grabsch
Subject: Re: [Mingw-cross-env-list] warning: "WIN32_LEAN_AND_MEAN" redefined
Date: Wed, 12 May 2010 14:52:02 +0200
User-agent: Mutt/1.5.13 (2006-08-11)

Martin Gerhardy <address@hidden> schrieb:
> getting a bunch of these errors - what would be the best way to fix
> them? another sed in the sdl.mk?
> 
> /home/mattn/Desktop/mingw-cross-env-2.12/usr/i686-pc-mingw32/include/SDL/SDL_opengl.h:30:1:
>  warning: "WIN32_LEAN_AND_MEAN" redefined
> In file included
> from 
> /opt/mingw-env/usr/bin/../lib/gcc/i686-pc-mingw32/4.4.0/../../../../i686-pc-mingw32/include/curl/curl.h:35,
>                  from src/client/battlescape/../../common/http.h:30,
>                  from src/client/battlescape/../../common/common.h:33,
>                  from src/client/battlescape/../cl_renderer.h:28,
>                  from src/client/battlescape/../client.h:32,
>                  from src/client/battlescape/cl_particle.c:26:

Sorry for the late reply.

I think this warning is harmless, and I honestly don't have
a clue why some libraries define "WIN32_LEAN_AND_MEAN" at all.

It seems that SDL as well as cURL are defining it, so when you
include both, as in this case, you get this warning.

If anyone likes to analyze that issue, feel free to propose a
patch to SDL, cURL, or whatever is needed to get a clean solution.

However, I don't think that $(SED) hacks are the right thing
here, because that wouldn't eliminate the cause of the warning.
It would just hide symptoms. And hacks whose only purpose is to
suppress warnings are IMHO the second worst of all hacks.

(The worst hacks are of course those which don't work properly.)


Greets,

    Volker

-- 
Volker Grabsch
---<<(())>>---
Administrator
NotJustHosting GbR



reply via email to

[Prev in Thread] Current Thread [Next in Thread]