aboutsummaryrefslogtreecommitdiffstats
path: root/tools/checkAPIs.pl
diff options
context:
space:
mode:
Diffstat (limited to 'tools/checkAPIs.pl')
-rwxr-xr-xtools/checkAPIs.pl13
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/checkAPIs.pl b/tools/checkAPIs.pl
index 163347b423..22b9da4b13 100755
--- a/tools/checkAPIs.pl
+++ b/tools/checkAPIs.pl
@@ -1557,6 +1557,19 @@ sub check_included_files($$)
}
}
+ # only our wrapper file wsutils/wspcap.h may include pcap.h
+ # all other files should include the wrapper
+ if ($filename !~ /wspcap\.h/) {
+ foreach (@incFiles) {
+ if ( m#([<"]|/+)pcap\.h[>"]$# ) {
+ print STDERR "Warning: ".$filename.
+ " includes pcap.h directly. ".
+ "Include wsutil/wspcap.h instead.\n";
+ last;
+ }
+ }
+ }
+
# files in the ui/qt directory should include the ui class includes
# by using #include <>
# this ensures that Visual Studio picks up these files from the