]> The Tcpdump Group git mirrors - libpcap/commit
diag-control.h: define PCAP_DO_PRAGMA() iff we're going to use it.
authorGuy Harris <[email protected]>
Tue, 12 Jul 2022 09:30:52 +0000 (02:30 -0700)
committerGuy Harris <[email protected]>
Thu, 14 Jul 2022 05:17:52 +0000 (22:17 -0700)
commit41799b3d6340136e18ac6bd9593ff4b6143e12ef
tree831d9124f2da52c9077e84aea123cd5bfd9cece5
parent8b1e427cc0346d94a6a00574cfdb2446d5406896
diag-control.h: define PCAP_DO_PRAGMA() iff we're going to use it.

Test for whether we're using Clang 2.8 or later or GCC 4.6 or later,
rather than testing for MSVC; that way, we define it for Microsoft's
clang-cl (which is Clang-based, so we want it defined, but it defines
_MSC_VER) and don't define it for compilers that aren't MSVC, Clang, or
GCC.

This should fix issue #1115.

(cherry picked from commit e985d6564ce124c9b85084623646bd0210f47d42)
diag-control.h