From 8b6b13d4cbb685db047af04c49817ed81fff7c35 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Wed, 17 Mar 2021 02:23:37 -0700 Subject: Don't wrap chunks of headers with extern "C" { ... }. Instead, explictly flag individual functions with extern "C" by adding it to the tag we're already using for exported functions, and creating a new tag to use for non-exported functions. Rename those tags, and the tags used for exported data, to say what they do, rather than saying "this is an API" (we may export things we don't want to be treated as part of the API, but that we have to export because some programs use them). --- nametoaddr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nametoaddr.c') diff --git a/nametoaddr.c b/nametoaddr.c index c944ad36..a8aa827f 100644 --- a/nametoaddr.c +++ b/nametoaddr.c @@ -588,8 +588,8 @@ struct eproto { * warnings we might get from compilers about the lack of a * declaration. */ -PCAP_API struct eproto eproto_db[]; -PCAP_API_DEF struct eproto eproto_db[] = { +PCAP_EXPORTED_DATA struct eproto eproto_db[]; +PCAP_EXPORTED_DATA_DEF struct eproto eproto_db[] = { { "aarp", ETHERTYPE_AARP }, { "arp", ETHERTYPE_ARP }, { "atalk", ETHERTYPE_ATALK }, -- cgit v1.2.3