summaryrefslogtreecommitdiffhomepage
path: root/lib.c
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2022-04-07 22:10:41 +0200
committerJo-Philipp Wich <jo@mein.io>2022-04-07 22:12:58 +0200
commit33f1e0b0926e973fb5ae445e9a995848762143bb (patch)
tree86f04814801f275c955e97e16e39736bc6186121 /lib.c
parent72292e9a86ac32e64da54bf27d38553f52161b89 (diff)
treewide: move json-c compat shims into internal header file
Do not expose the json-c compat functions in ucode's public headers to avoid clashes when building on systems with modern json-c. Also remove some explicit json-c/json-c.h includes in places where it is not needed. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'lib.c')
-rw-r--r--lib.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib.c b/lib.c
index 667a12f..126badc 100644
--- a/lib.c
+++ b/lib.c
@@ -33,6 +33,8 @@
#include <fnmatch.h>
#include <assert.h>
+#include "json-c-compat.h"
+
#include "ucode/lexer.h"
#include "ucode/compiler.h"
#include "ucode/vm.h"