From 43f76b85a586fc3dbe4f7a029a5973c0940389a9 Mon Sep 17 00:00:00 2001 From: Abtin Keshavarzian Date: Tue, 17 Oct 2017 18:07:28 -0700 Subject: [PATCH] [config] add "openthread-core-config.h" to wrapped stdint/stdbool/string header files (#2270) --- src/core/utils/missing_strlcat.c | 2 -- src/core/utils/wrap_stdbool.h | 2 ++ src/core/utils/wrap_stdint.h | 2 ++ src/core/utils/wrap_string.h | 2 ++ 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/core/utils/missing_strlcat.c b/src/core/utils/missing_strlcat.c index 5729fb46c..c28997d5c 100644 --- a/src/core/utils/missing_strlcat.c +++ b/src/core/utils/missing_strlcat.c @@ -25,8 +25,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include "openthread-core-config.h" - #include "utils/wrap_string.h" size_t missing_strlcat(char *dest, const char *src, size_t size) diff --git a/src/core/utils/wrap_stdbool.h b/src/core/utils/wrap_stdbool.h index d38f5f219..3548e650f 100644 --- a/src/core/utils/wrap_stdbool.h +++ b/src/core/utils/wrap_stdbool.h @@ -35,6 +35,8 @@ #if !defined(WRAP_STDBOOL_H) #define WRAP_STDBOOL_H +#include "openthread-core-config.h" + #if HAVE_STDBOOL_H #include #else diff --git a/src/core/utils/wrap_stdint.h b/src/core/utils/wrap_stdint.h index 5eb58a61a..daece711a 100644 --- a/src/core/utils/wrap_stdint.h +++ b/src/core/utils/wrap_stdint.h @@ -27,6 +27,8 @@ #if !defined(WRAP_STDINT_H) #define WRAP_STDINT_H +#include "openthread-core-config.h" + /* generally all compilers support this */ /* Visual Studio only after VS2015 (aka: 19.00) */ diff --git a/src/core/utils/wrap_string.h b/src/core/utils/wrap_string.h index f86a541c8..b9073bf08 100644 --- a/src/core/utils/wrap_string.h +++ b/src/core/utils/wrap_string.h @@ -35,6 +35,8 @@ #if !defined(WRAP_STRING_H) #define WRAP_STRING_H +#include "openthread-core-config.h" + /* system provided string.h */ #include