]> The Tcpdump Group git mirrors - libpcap/commitdiff
Test BUILDING_PCAP to see whether we're building libpcap.
authorGuy Harris <[email protected]>
Thu, 22 Mar 2018 04:40:55 +0000 (21:40 -0700)
committerGuy Harris <[email protected]>
Thu, 22 Mar 2018 04:40:55 +0000 (21:40 -0700)
pcap/funcattrs.h

index d1cc2bf7893a7c16a414f1a065f31b082f11e964..af6f21b9fe2b1cbb311c7473f680277538ca8f07 100644 (file)
    * __attribute__((deprecated(msg))).
    */
   #define PCAP_DEPRECATED(func, msg)   __attribute__((deprecated))
-#elif (defined(_MSC_VER) && (_MSC_VER >= 1500)) && !defined(pcap_EXPORTS)
+#elif (defined(_MSC_VER) && (_MSC_VER >= 1500)) && !defined(BUILDING_PCAP)
   /*
    * MSVC from Visual Studio 2008 or later, and we're not building
    * libpcap itself.