iphlpapi: Don't rely on the HAVE_XXX macros having a numeric values.
Dan Kegel
dank at kegel.com
Fri Jun 8 11:50:54 CDT 2012
-#elif defined(HAVE_SYS_SYSCTL_H) && defined(IPCTL_STATS) &&
(HAVE_STRUCT_IPSTAT_IPS_TOTAL || HAVE_STRUCT_IP_STATS_IPS_TOTAL)
+#elif defined(HAVE_SYS_SYSCTL_H) && defined(IPCTL_STATS) &&
(defined(HAVE_STRUCT_IPSTAT_IPS_TOTAL) ||
defined(HAVE_STRUCT_IP_STATS_IPS_TOTAL))
Isn't this a no-op? I thought that an undefined symbol was
treated as false by the preprocessor.
When I compile
#if defined(HAVE_SYS_SYSCTL_H) && defined(IPCTL_STATS) &&
(HAVE_STRUCT_IPSTAT_IPS_TOTAL || HAVE_STRUCT_IP_STATS_IPS_TOTAL)
defined
#else
not defined
#endif
with gcc -E or cl /E, I get
not defined
More information about the wine-devel
mailing list