Skip to content

Commit

Permalink
examples: cleanup for mingw coexistence
Browse files Browse the repository at this point in the history
  • Loading branch information
Elms committed Nov 13, 2020
1 parent 0bff836 commit 951e27f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
8 changes: 8 additions & 0 deletions examples/keygen/keyload.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 <wolftpm/tpm2_wrap.h>

#include <examples/keygen/keygen.h>
Expand Down
7 changes: 7 additions & 0 deletions examples/tpm_test_keys.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 <wolftpm/tpm2_wrap.h>
Expand Down
Empty file modified scripts/tls_setup.sh
100644 → 100755
Empty file.

0 comments on commit 951e27f

Please sign in to comment.