[Winpcap-users] AirPcap.h patch

Gisle Vanem giva at bgnett.no
Wed Sep 6 16:09:52 GMT 2006


This patch makes gcc+MingW compile a bit quieter:

--- AirPcap\include\airpcap.h.orig      Thu Aug 10 02:10:52 2006
+++ AirPcap\include\airpcap.h   Wed Sep 06 18:08:15 2006
@@ -22,8 +22,10 @@
 #if !defined(AIRPCAP_H__EAE405F5_0171_9592_B3C2_C19EC426AD34__INCLUDED_)
 #define AIRPCAP_H__EAE405F5_0171_9592_B3C2_C19EC426AD34__INCLUDED_

-// This disables a VS warning for zero-sized arrays. All the compilers we support have that feature

+#ifdef _MSC_VER
+// This disables a VS warning for zero-sized arrays.
 #pragma warning( disable : 4200)
+#endif

 #ifdef __cplusplus
 extern "C" {

--------------------
--gv


More information about the Winpcap-users mailing list