# HG changeset patch # User Matti Hamalainen # Date 1578587350 -7200 # Node ID ac2947ac9ef82d8a256015ffc230411dcc56ce4e # Parent 70d44ba005aced57e50d414572736dbdab767ac4 Define PRI*_SIZE_T from PRIu32/64 based on platform, this is cleaner and avoids issues on MINGW64. diff -r 70d44ba005ac -r ac2947ac9ef8 th_types.h --- a/th_types.h Thu Jan 09 18:27:48 2020 +0200 +++ b/th_types.h Thu Jan 09 18:29:10 2020 +0200 @@ -79,9 +79,9 @@ # define PRIi64 "lli" # define PRIo64 "llo" # endif -# define PRIu_SIZE_T "u" -# define PRId_SSIZE_T "d" -# define PRIx_SIZE_T "x" +# define PRIu_SIZE_T PRIu32 +# define PRId_SSIZE_T PRId32 +# define PRIx_SIZE_T PRIx32 # ifndef TH_PTRSIZE # define TH_PTRSIZE 32 # endif @@ -103,9 +103,9 @@ # define PRIi64 "li" # define PRIo64 "lo" # endif -# define PRIu_SIZE_T "lu" -# define PRId_SSIZE_T "ld" -# define PRIx_SIZE_T "lx" +# define PRIu_SIZE_T PRIu64 +# define PRId_SSIZE_T PRId64 +# define PRIx_SIZE_T PRIx64 # ifndef TH_PTRSIZE # define TH_PTRSIZE 64 # endif