Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lib: rename TPM2B_INIT() macro to TPM2B_INIT_SIZE()
A TPM2B_INIT() macro is already defined in tpm2-tss 1.x SAPI headers, so lets rename it to TPM2B_INIT_SIZE() to prevent the following build error when building the tpm2-tools against that tpm2-tss version: In file included from lib/tcti/tpm2_tools_tcti_abrmd.c:39:0: ./lib/tpm2_util.h:49:0: error: "TPM2B_INIT" redefined [-Werror] #define TPM2B_INIT(xsize) { .t = { .size = xsize, }, } In file included from /usr/include/sapi/tpm20.h:42:0, from /usr/local/include/tcti/tcti-tabrmd.h:34, from lib/tcti/tpm2_tools_tcti_abrmd.c:33: /usr/include/sapi/tpmb.h:75:0: note: this is the location of the previous definition #define TPM2B_INIT(TYPE, name) \ Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
- Loading branch information
1 parent
ada5df3
commit 60f235d
Showing
3 changed files
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters