diff options
author | Guy Harris <guy@alum.mit.edu> | 2017-11-27 11:27:55 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2017-11-27 11:27:55 -0800 |
commit | de8f67efe0118b7e3da1f3450f0f0020f696628c (patch) | |
tree | 0036202a362d978cf148fb379a4820bfa9587bca /pcap/pcap.h | |
parent | e836305669af58371699acead5eea3d7db45893b (diff) | |
download | libpcap-de8f67efe0118b7e3da1f3450f0f0020f696628c.tar.gz |
Use pcap_EXPORTS rather than BUILDING_PCAP to control export/import in headers.
CMake automatically defines pcap_EXPORTS, so we don't have to define
anything ourselves. Define it with autotools as well.
Diffstat (limited to 'pcap/pcap.h')
-rw-r--r-- | pcap/pcap.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pcap/pcap.h b/pcap/pcap.h index d32e2a9a..11a2e87e 100644 --- a/pcap/pcap.h +++ b/pcap/pcap.h @@ -419,7 +419,7 @@ PCAP_API pcap_t *pcap_open_offline(const char *, char *); * runtime with which libpcap was built. (Maybe once the Universal CRT * rules the world, this will cease to be a problem.) */ - #ifndef BUILDING_PCAP + #ifndef pcap_EXPORTS #define pcap_fopen_offline_with_tstamp_precision(f,p,b) \ pcap_hopen_offline_with_tstamp_precision(_get_osfhandle(_fileno(f)), p, b) #define pcap_fopen_offline(f,b) \ |