[openssl-commits] [openssl] master update

Matt Caswell matt at openssl.org
Wed Oct 26 20:05:25 UTC 2016


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


- Log -----------------------------------------------------------------
commit 875e3f934e8586039e79efb6ed1262c80803aa42
Author: Matt Caswell <matt at 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 <levitte at 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


More information about the openssl-commits mailing list