iphlpapi: Don't rely on the HAVE_XXX macros having a numeric values.

Dan Kegel dank at kegel.com
Fri Jun 8 14:31:55 CDT 2012


On Fri, Jun 8, 2012 at 11:51 AM, Francois Gouget <fgouget at free.fr> wrote:
> On Fri, 8 Jun 2012, Dan Kegel wrote:
>> Isn't this a no-op?  I thought that an undefined symbol was
>> treated as false by the preprocessor.
>
> Actually you may be right. But then this is the only place in Wine where
> we rely on this and I see not reason to make this assumption. Even more
> so since we don't for the other macros in the same test which makes this
> locally inconsistent.

It feels funny to avoid using a basic feature of C...
maybe we should remove the extra defined() calls.



More information about the wine-devel mailing list