Define __STDC_FORMAT_MACROS before inttypes.h.

It seems Android's inttypes.h refuses to define those macros on C++ unless
__STDC_FORMAT_MACROS is set. This unbreaks the roll on Android.

Change-Id: Iad6c971b4789f0302534d9e5022534c6124e0ff0
Reviewed-on: https://boringssl-review.googlesource.com/4202
Reviewed-by: Adam Langley <agl@google.com>
This commit is contained in:
David Benjamin 2015-04-02 14:09:03 -04:00 committed by Adam Langley
parent 0e434b9470
commit 89baa72ed8

View File

@ -125,6 +125,12 @@
#include <openssl/base.h>
/* Some versions of inttypes.h will not define print macros in C++ unless
* __STDC_FORMAT_MACROS is set. */
#if !defined(__STDC_FORMAT_MACROS)
#define __STDC_FORMAT_MACROS
#endif
#include <inttypes.h>
#if defined(OPENSSL_X86_64) && defined(_MSC_VER) && _MSC_VER >= 1400