examples: cleanup for mingw coexistence

pull/130/head
Elms 2020-11-12 13:12:56 -08:00
parent 0bff836fa2
commit 951e27f706
3 changed files with 15 additions and 0 deletions

View File

@ -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>

View File

@ -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>

0
scripts/tls_setup.sh 100644 → 100755
View File