From 84a2706393e083508d591492b734d1f589f29ecc Mon Sep 17 00:00:00 2001 From: Kamil Sroka Date: Mon, 11 Feb 2019 22:04:56 +0100 Subject: [PATCH] [build] don't define UINT32_MAX for C (#3581) --- include/openthread/platform/toolchain.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/openthread/platform/toolchain.h b/include/openthread/platform/toolchain.h index 474221349..0741f175d 100644 --- a/include/openthread/platform/toolchain.h +++ b/include/openthread/platform/toolchain.h @@ -303,12 +303,14 @@ extern "C" { /* * Keil and IAR compiler doesn't provide type limits for C++. */ +#ifdef __cplusplus #if defined(__CC_ARM) || defined(__ICCARM__) #ifndef UINT32_MAX #define UINT32_MAX 0xffffffff #endif +#endif #endif /**