summaryrefslogtreecommitdiff
path: root/firmware/include/tpm1_tss_constants.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/include/tpm1_tss_constants.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/include/tpm1_tss_constants.h')
-rw-r--r--firmware/include/tpm1_tss_constants.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/firmware/include/tpm1_tss_constants.h b/firmware/include/tpm1_tss_constants.h
index 54642ba6..8d92bef2 100644
--- a/firmware/include/tpm1_tss_constants.h
+++ b/firmware/include/tpm1_tss_constants.h
@@ -11,6 +11,10 @@
#include <stdint.h>
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
#define TPM_MAX_COMMAND_SIZE 4096
#define TPM_LARGE_ENOUGH_COMMAND_SIZE 256 /* saves space in the firmware */
#define TPM_PUBEK_SIZE 256
@@ -251,4 +255,8 @@ typedef struct tdTPM_NV_AUTH_POLICY
#define TPM_ORD_Startup ((uint32_t) 0x00000099)
#define TPM_ORD_TakeOwnership ((uint32_t) 0x0000000D)
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
#endif /* ! __VBOOT_REFERENCE_FIRMWARE_INCLUDE_TPM1_TSS_CONSTANTS_H */