diff options
author | Allen Webb <allenwebb@google.com> | 2018-11-09 09:42:53 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-11-15 13:16:06 -0800 |
commit | 1c95cff7463ef29bd0c6d087ce8c3d7e17f94c6a (patch) | |
tree | 90de208cb94b874a8fc3a8a1f1082116e908cc48 /include/util.h | |
parent | 268b07da45535033ae39240e958fc00386e37684 (diff) | |
download | chrome-ec-1c95cff7463ef29bd0c6d087ce8c3d7e17f94c6a.tar.gz |
cr50: Add extern "C" to headers used by future fuzzing target.
BRANCH=None
BUG=None
TEST=make -j buildall
Change-Id: Icf2cfb6a2657064c10721c0e527d24fbb3be6ab3
Signed-off-by: Allen Webb <allenwebb@google.com>
Reviewed-on: https://chromium-review.googlesource.com/1330102
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Diffstat (limited to 'include/util.h')
-rw-r--r-- | include/util.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/util.h b/include/util.h index 9691669c19..39a07e4b1e 100644 --- a/include/util.h +++ b/include/util.h @@ -15,6 +15,10 @@ #include "builtin/assert.h" /* For ASSERT(). */ #include <stddef.h> +#ifdef __cplusplus +extern "C" { +#endif + /* Standard macros / definitions */ #ifndef MAX #define MAX(a, b) \ @@ -219,4 +223,8 @@ static inline uint64_t mulaa32(uint32_t a, uint32_t b, uint32_t c, uint32_t d) } #endif +#ifdef __cplusplus +} +#endif + #endif /* __CROS_EC_UTIL_H */ |