The branch master has been updated
       via  875e3f934e8586039e79efb6ed1262c80803aa42 (commit)
      from  99d63d4662e16afbeff49f29b48f1c87d5558ed0 (commit)


- Log -----------------------------------------------------------------
commit 875e3f934e8586039e79efb6ed1262c80803aa42
Author: Matt Caswell <m...@openssl.org>
Date:   Tue Oct 25 15:28:30 2016 +0100

    Provide a cross-platform format specifier (OSSLzu) for printing size_t
    
    Reviewed-by: Richard Levitte <levi...@openssl.org>

-----------------------------------------------------------------------

Summary of changes:
 include/openssl/e_os2.h | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/include/openssl/e_os2.h b/include/openssl/e_os2.h
index 99ea347..5bec684 100644
--- a/include/openssl/e_os2.h
+++ b/include/openssl/e_os2.h
@@ -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
_____
openssl-commits mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-commits

Reply via email to