aboutsummaryrefslogtreecommitdiff
path: root/optimize.c
diff options
context:
space:
mode:
authorGuy Harris <gharris@sonic.net>2021-03-17 02:23:37 -0700
committerGuy Harris <gharris@sonic.net>2021-03-17 02:23:37 -0700
commit8b6b13d4cbb685db047af04c49817ed81fff7c35 (patch)
tree7ba565e6cfa2a8e0f25952bc720c389512255170 /optimize.c
parentbb02779a37fdf815da58e8828eb4ce99a4f86580 (diff)
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).
Diffstat (limited to 'optimize.c')
-rw-r--r--optimize.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/optimize.c b/optimize.c
index 610a0303..97894d02 100644
--- a/optimize.c
+++ b/optimize.c
@@ -62,7 +62,7 @@ static int pcap_optimizer_debug;
* it's not declared in any header file, and won't be declared in any
* header file provided by libpcap.
*/
-PCAP_API void pcap_set_optimizer_debug(int value);
+PCAP_EXPORTED_C_FUNC void pcap_set_optimizer_debug(int value);
PCAP_API_DEF void
pcap_set_optimizer_debug(int value)
@@ -87,7 +87,7 @@ static int pcap_print_dot_graph;
* it's not declared in any header file, and won't be declared in any
* header file provided by libpcap.
*/
-PCAP_API void pcap_set_print_dot_graph(int value);
+PCAP_EXPORTED_C_FUNC void pcap_set_print_dot_graph(int value);
PCAP_API_DEF void
pcap_set_print_dot_graph(int value)