2016-10-25 Pedro Alves <palves@redhat.com>
+ * common/common-defs.h (__STDC_FORMAT_MACROS): Define.
+
+2016-10-25 Pedro Alves <palves@redhat.com>
+
* common/new-op.c: Add comment about -fsanitize=address.
2016-10-25 Pedro Alves <palves@redhat.com>
macros such as INTMAX_C, and one must define __STDC_LIMIT_MACROS to
make visible the definitions of limit macros such as INTMAX_MAX.".
- Must do this before including any system header, since system
- headers may include stdint.h. */
+ And:
+ https://www.gnu.org/software/gnulib/manual/html_node/inttypes_002eh.html
+
+ "On some hosts that predate C++11, when using C++ one must define
+ __STDC_FORMAT_MACROS to make visible the declarations of format
+ macros such as PRIdMAX."
+
+ Must do this before including any system header, since other system
+ headers may include stdint.h/inttypes.h. */
#define __STDC_CONSTANT_MACROS 1
#define __STDC_LIMIT_MACROS 1
+#define __STDC_FORMAT_MACROS 1
#include <stdarg.h>
#include <stdio.h>