Commit 875e3f93 authored by Matt Caswell's avatar Matt Caswell
Browse files

Provide a cross-platform format specifier (OSSLzu) for printing size_t

parent 99d63d46
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -276,6 +276,17 @@ typedef unsigned __int64 uint64_t;
#  endif
# endif

/* Format specifier for printing size_t */
# if (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L)
#  define OSSLzu  "zu"
# else
#  ifdef THIRTY_TWO_BIT
#   define OSSLzu "u"
#  else
#   define OSSLzu PRIu64
#  endif
# endif

/* ossl_inline: portable inline definition usable in public headers */
# if !defined(inline) && !defined(__cplusplus)
#  if defined(__STDC_VERSION__) && __STDC_VERSION__>=199901L