diff --git a/include/r3.h b/include/r3.h index 97d7af4..02f6e9f 100644 --- a/include/r3.h +++ b/include/r3.h @@ -12,6 +12,7 @@ #include #include +#if __STDC_VERSION__ <= 201710L #ifdef HAVE_STDBOOL_H # include #elif !defined(bool) && !defined(__cplusplus) @@ -20,6 +21,7 @@ typedef unsigned char bool; # define false 0 # define true 1 #endif +#endif #include "str_array.h" #include "r3_slug.h" diff --git a/include/str_array.h b/include/str_array.h index 309d39b..4c482f8 100644 --- a/include/str_array.h +++ b/include/str_array.h @@ -10,6 +10,7 @@ #include "memory.h" +#if __STDC_VERSION__ <= 201710L #ifdef HAVE_STDBOOL_H # include #elif !defined(bool) && !defined(__cplusplus) @@ -18,6 +19,7 @@ typedef unsigned char bool; # define false 0 # define true 1 #endif +#endif typedef struct _str_array { R3_VECTOR(r3_iovec_t) slugs; diff --git a/src/match_entry.c b/src/match_entry.c index 512aba0..f0e4f8d 100644 --- a/src/match_entry.c +++ b/src/match_entry.c @@ -10,7 +10,6 @@ #include #include #include -#include #include "r3.h"