summaryrefslogtreecommitdiff
path: root/firmware/2lib/include/2id.h
diff options
context:
space:
mode:
authorMike Frysinger <vapier@chromium.org>2018-09-01 17:29:18 -0400
committerchrome-bot <chrome-bot@chromium.org>2018-09-04 21:04:01 -0700
commit483fcf08acb9ad9bbedbb5f980314144260d5da4 (patch)
treecc44505da08c7a21ec675001bead117181658071 /firmware/2lib/include/2id.h
parentb7a007a22971e3a257b40844d4f685875ee56d5e (diff)
downloadvboot-483fcf08acb9ad9bbedbb5f980314144260d5da4.tar.gz
add extern C markers to installed headers
Some of the headers have extern C markings already, so add to the rest of the installed files so users don't have to. BUG=chromium:878440 TEST=build passes BRANCH=none Change-Id: I3edf56ca2235269803049207806a9f7eb4c664f2 Reviewed-on: https://chromium-review.googlesource.com/1201042 Commit-Ready: Mike Frysinger <vapier@chromium.org> Tested-by: Mike Frysinger <vapier@chromium.org> Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'firmware/2lib/include/2id.h')
-rw-r--r--firmware/2lib/include/2id.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/firmware/2lib/include/2id.h b/firmware/2lib/include/2id.h
index 03f6d961..28ba5538 100644
--- a/firmware/2lib/include/2id.h
+++ b/firmware/2lib/include/2id.h
@@ -12,6 +12,10 @@
#define VBOOT_REFERENCE_VBOOT_2ID_H_
#include <stdint.h>
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
#define VB2_ID_NUM_BYTES 20
struct vb2_id {
@@ -25,4 +29,8 @@ struct vb2_id {
#define VB2_ID_NONE_SHA256 {{0x02, 0x56,}}
#define VB2_ID_NONE_SHA512 {{0x05, 0x12,}}
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
#endif /* VBOOT_REFERENCE_VBOOT_2ID_H_ */