aboutsummaryrefslogtreecommitdiffstats
path: root/wsutil/crc32.c
diff options
context:
space:
mode:
authorNicolás Alvarez <nicolas.alvarez@gmail.com>2023-05-31 01:53:47 -0300
committerJoão Valverde <j@v6e.pt>2023-06-24 13:22:02 +0000
commit29eed029b3fd2639bd920ad47edff37cf8a16109 (patch)
tree01296dbc31ffa99209bd630ddc31461b8d050a9a /wsutil/crc32.c
parentcd9c3c639b7fc6baf1173b678168bf6f0c0990bd (diff)
Make wsutil headers include what they use and build standalone
There's many wsutil headers which used glib types like guint8 or GString but didn't include glib.h. If a new .c file included wsutil/xx.h, it would not compile if it doesn't include glib.h first. This commit adds #include <wireshark.h> to the headers in wsutil where GLib types are being used. It also makes every wsutil/xx.c file include the corresponding xx.h before including anything else, which makes the build fail if the header doesn't build standalone due to missing other includes.
Diffstat (limited to 'wsutil/crc32.c')
-rw-r--r--wsutil/crc32.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/wsutil/crc32.c b/wsutil/crc32.c
index bdb6d8ceb5..957284845b 100644
--- a/wsutil/crc32.c
+++ b/wsutil/crc32.c
@@ -15,7 +15,6 @@
#include "config.h"
-#include <glib.h>
#include <wsutil/crc32.h>
#define CRC32_ACCUMULATE(c,d,table) (c=(c>>8)^(table)[(c^(d))&0xFF])