]> The Tcpdump Group git mirrors - libpcap/blobdiff - pcap/funcattrs.h
Test BUILDING_PCAP to see whether we're building libpcap.
[libpcap] / 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.