diff options
author | Richard Yoo <ryoo@google.com> | 2019-10-04 13:44:01 -0400 |
---|---|---|
committer | Tadeusz Struk <tadeusz.struk@intel.com> | 2019-10-07 15:41:08 -0700 |
commit | fb4315b2a8ec1cda346c22a4f0436e1a7149cbe6 (patch) | |
tree | a7b3a16767de7324c7ae5f156a3187f507274b0c /include/tss2 | |
parent | 70e9fae7ef535e7cf27a72ddbc818dfefcbdbdbb (diff) | |
download | tpm2-tss-fb4315b2a8ec1cda346c22a4f0436e1a7149cbe6.tar.gz |
Add C++ linkage to tss2_rc.h
Without the change, using Tss2_RC_Decode() or Tss2_RC_SetHandler() from
C++ code results in undefined reference error during linkage.
Signed-off-by: Richard Yoo <ryoo@google.com>
Diffstat (limited to 'include/tss2')
-rw-r--r-- | include/tss2/tss2_rc.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/tss2/tss2_rc.h b/include/tss2/tss2_rc.h index 6cda0227..35b5302d 100644 --- a/include/tss2/tss2_rc.h +++ b/include/tss2/tss2_rc.h @@ -7,10 +7,18 @@ #include "tss2_tpm2_types.h" +#ifdef __cplusplus +extern "C" { +#endif + typedef const char *(*TSS2_RC_HANDLER)(TSS2_RC rc); const char *Tss2_RC_Decode(TSS2_RC rc); TSS2_RC_HANDLER Tss2_RC_SetHandler(uint8_t layer, const char *name, TSS2_RC_HANDLER handler); +#ifdef __cplusplus +} +#endif + #endif |