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

Alexandre Julliard julliard at winehq.org
Fri Jun 8 13:36:14 CDT 2012


Module: wine
Branch: master
Commit: 562b277bb313f05a1ab4cd15381eed5ba697e389
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=562b277bb313f05a1ab4cd15381eed5ba697e389

Author: Francois Gouget <fgouget at free.fr>
Date:   Fri Jun  8 15:12:57 2012 +0200

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

---

 dlls/iphlpapi/ipstats.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/iphlpapi/ipstats.c b/dlls/iphlpapi/ipstats.c
index 0edd011..009dd99 100644
--- a/dlls/iphlpapi/ipstats.c
+++ b/dlls/iphlpapi/ipstats.c
@@ -659,7 +659,7 @@ DWORD WINAPI GetIpStatistics(PMIB_IPSTATS stats)
         }
         if (kc) kstat_close( kc );
     }
-#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))
     {
         int mib[] = {CTL_NET, PF_INET, IPPROTO_IP, IPCTL_STATS};
 #define MIB_LEN (sizeof(mib) / sizeof(mib[0]))




More information about the wine-cvs mailing list