[openssl-dev] [openssl.org #4309] [PATCH] Fix UEFI/EDK2 build error by defining PRIu64

David Woodhouse via RT rt at openssl.org
Tue Feb 16 14:59:03 UTC 2016


Provide an appropriate definition of PRIu64 for the EDK2 build, since
we don't have <inttypes.h> there.
---
 include/openssl/e_os2.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/openssl/e_os2.h b/include/openssl/e_os2.h
index 1a1fe3e..59af447 100644
--- a/include/openssl/e_os2.h
+++ b/include/openssl/e_os2.h
@@ -299,6 +299,7 @@ typedef INT32 int32_t;
 typedef UINT32 uint32_t;
 typedef INT64 int64_t;
 typedef UINT64 uint64_t;
+#define PRIu64 "%Lu"
 # elif defined(_MSC_VER) && _MSC_VER<=1500
 /*
  * minimally required typdefs for systems not supporting inttypes.h or
-- 
2.5.0


-- 
David Woodhouse                            Open Source Technology Centre
David.Woodhouse at intel.com                              Intel Corporation


-- 
Ticket here: http://rt.openssl.org/Ticket/Display.html?id=4309
Please log in as guest with password guest if prompted

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 5691 bytes
Desc: not available
URL: <http://mta.openssl.org/pipermail/openssl-dev/attachments/20160216/66a2672e/attachment-0001.bin>


More information about the openssl-dev mailing list