diff options
author | Jo-Philipp Wich <jo@mein.io> | 2022-03-15 23:19:36 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2022-03-15 23:19:36 +0100 |
commit | ab46fdfe742e754a8a56207ce1fc5653085696ad (patch) | |
tree | dee32d4bba166995bdb32d4cf8f1fcad8bcead4d | |
parent | b8f49b1b00c624df1208cd854aa65516b47c4c11 (diff) |
treewide: remove legacy json-c include directives
We now include `json-c/json-c.h` on all supported environments.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
-rw-r--r-- | include/ucode/compiler.h | 7 | ||||
-rw-r--r-- | include/ucode/vallist.h | 8 | ||||
-rw-r--r-- | main.c | 7 |
3 files changed, 3 insertions, 19 deletions
diff --git a/include/ucode/compiler.h b/include/ucode/compiler.h index 3387a73..a85b48b 100644 --- a/include/ucode/compiler.h +++ b/include/ucode/compiler.h @@ -20,12 +20,7 @@ #include <stddef.h> #include <stdint.h> #include <stdbool.h> - -#ifdef JSONC - #include <json.h> -#else - #include <json-c/json.h> -#endif +#include <json-c/json.h> #include "source.h" #include "lexer.h" diff --git a/include/ucode/vallist.h b/include/ucode/vallist.h index 4e025b9..53750bd 100644 --- a/include/ucode/vallist.h +++ b/include/ucode/vallist.h @@ -20,14 +20,8 @@ #include <stdint.h> #include <stddef.h> #include <stdbool.h> - -#ifdef JSONC - #include <json.h> -#else - #include <json-c/json.h> -#endif - #include <stdio.h> +#include <json-c/json.h> #include "types.h" @@ -23,12 +23,7 @@ #include <fcntl.h> #include <sys/stat.h> #include <sys/types.h> - -#ifdef JSONC - #include <json.h> -#else - #include <json-c/json.h> -#endif +#include <json-c/json.h> #include "ucode/compiler.h" #include "ucode/lexer.h" |