summaryrefslogtreecommitdiff
path: root/builtin/endian.h
diff options
context:
space:
mode:
authorAllen Webb <allenwebb@google.com>2018-11-09 09:42:53 -0800
committerchrome-bot <chrome-bot@chromium.org>2018-11-15 13:16:06 -0800
commit1c95cff7463ef29bd0c6d087ce8c3d7e17f94c6a (patch)
tree90de208cb94b874a8fc3a8a1f1082116e908cc48 /builtin/endian.h
parent268b07da45535033ae39240e958fc00386e37684 (diff)
downloadchrome-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 'builtin/endian.h')
-rw-r--r--builtin/endian.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/builtin/endian.h b/builtin/endian.h
index b27b7cd496..8a50cb4815 100644
--- a/builtin/endian.h
+++ b/builtin/endian.h
@@ -8,6 +8,10 @@
#include <stdint.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/*
* Functions to convert byte order in various sized big endian integers to
* host byte order. Note that the code currently does not require functions
@@ -34,5 +38,8 @@ static inline uint64_t be64toh(uint64_t in)
#endif /* __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ */
+#ifdef __cplusplus
+}
+#endif
#endif /* __EC_BUILTIN_ENDIAN_H */