diff --git a/examples/keygen/keyload.c b/examples/keygen/keyload.c index 5d389db4..37a279a0 100644 --- a/examples/keygen/keyload.c +++ b/examples/keygen/keyload.c @@ -21,6 +21,14 @@ /* Tool and example for creating, storing and loading keys using TPM2.0 */ + +/* use ANSI stdio for support of format strings, must be set before + * including stdio.h + */ +#if defined(__MINGW32__) || defined(__MINGW64__) +#define __USE_MINGW_ANSI_STDIO 1 +#endif + #include #include diff --git a/examples/tpm_test_keys.c b/examples/tpm_test_keys.c index 6d20e3ab..fd10951d 100644 --- a/examples/tpm_test_keys.c +++ b/examples/tpm_test_keys.c @@ -19,6 +19,13 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ +/* use ANSI stdio for support of format strings, must be set before + * including stdio.h + */ +#if defined(__MINGW32__) || defined(__MINGW64__) +#define __USE_MINGW_ANSI_STDIO 1 +#endif + #include "tpm_test.h" #include "tpm_test_keys.h" #include diff --git a/scripts/tls_setup.sh b/scripts/tls_setup.sh old mode 100644 new mode 100755