Skip to content

Commit e1bbabe

Browse files
Paul BartellAndreas Fuchs
Paul Bartell
authored and
Andreas Fuchs
committed
tpm2-tss-engine: Add __cplusplus include guard to header file
Signed-off-by: Paul Bartell <[email protected]>
1 parent d04c6ec commit e1bbabe

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

include/tpm2-tss-engine.h

+7
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@
3434
#include <openssl/engine.h>
3535
#include <tss2/tss2_tpm2_types.h>
3636

37+
#ifdef __cplusplus
38+
extern "C" {
39+
#endif
40+
3741
typedef enum {
3842
KEY_TYPE_BLOB,
3943
KEY_TYPE_HANDLE
@@ -84,4 +88,7 @@ tpm2tss_ecc_getappdata(EC_KEY *key);
8488
int
8589
tpm2tss_ecc_setappdata(EC_KEY *key, TPM2_DATA *data);
8690

91+
#ifdef __cplusplus
92+
}
93+
#endif
8794
#endif /* TPM2_TSS_ENGINE_H */

0 commit comments

Comments
 (0)