From 4a95b9b7aed292e2c0a02b2bf81b7244ab3b6549 Mon Sep 17 00:00:00 2001 From: Mattias Nissler Date: Thu, 11 Jan 2018 12:34:28 +0100 Subject: [PATCH] tpm: Add extern "C" declaration for C++ compatibility. The mount-encrypted utility, which includes tlcl.h is in the process of being converted to C++. To simplify inclusion in C++ code, add the standard extern "C" linkage specifiers. BRANCH=none BUG=chromium:808303 TEST=compiles Change-Id: I8a99a0e5cfcce64b27cad10735b08ba40434b222 Reviewed-on: https://chromium-review.googlesource.com/915345 Commit-Ready: Mattias Nissler Tested-by: Mattias Nissler Reviewed-by: Vadim Bendebury Reviewed-by: Andrey Pronin --- firmware/include/tlcl.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/firmware/include/tlcl.h b/firmware/include/tlcl.h index f8d94721eb..b38c3d6969 100644 --- a/firmware/include/tlcl.h +++ b/firmware/include/tlcl.h @@ -15,6 +15,10 @@ #include "tss_constants.h" +#ifdef __cplusplus +extern "C" { +#endif + /*****************************************************************************/ /* Functions implemented in tlcl.c */ @@ -226,4 +230,8 @@ uint32_t TlclGetVersion(uint32_t* vendor, uint64_t* firmware_version, */ uint32_t TlclIFXFieldUpgradeInfo(TPM_IFX_FIELDUPGRADEINFO *info); +#ifdef __cplusplus +} +#endif + #endif /* TPM_LITE_TLCL_H_ */