| commit | c561aa64b6c42192806fb9f74d8ffafa2ab8d64f | [log] [tgz] |
|---|---|---|
| author | David Benjamin <davidben@chromium.org> | Sat May 09 01:38:06 2015 -0400 |
| committer | Adam Langley <agl@google.com> | Mon May 11 18:38:08 2015 +0000 |
| tree | 4cda73f7baf2c852acd9e413cdba6700a9970a99 | |
| parent | 3bf1cca2621867d4776a0d939516c8d0add106d5 [diff] |
Require source files define __STDC_FORMAT_MACROS to use BN FMT macros. inttypes.h kindly requires a feature macro in C++ on some platforms, due to a bizarre footnote in C99 (see footnote 191 in section 7.8.1). As bn.h is a public header, we must leak this wart to the consumer. On platforms with unfriendly inttypes.h headers, using BN_DEC_FMT1 and friends now require the feature macro be defined externally. This broke the Chromium Android Clang builder: http://build.chromium.org/p/chromium.linux/builders/Android%20Clang%20Builder%20%28dbg%29/builds/59288 Change-Id: I88275a6788c7babd0eae32cae86f115bfa93a591 Reviewed-on: https://boringssl-review.googlesource.com/4688 Reviewed-by: Adam Langley <agl@google.com>