From 979ba2bb6c1e3f698644a79adf166d81337880a6 Mon Sep 17 00:00:00 2001 From: Dana Robinson Date: Fri, 4 Jun 2021 13:17:34 -0500 Subject: [PATCH 1/2] Adds __STDC_FORMAT_MACROS before including inttypes.h w/ C++ Allows C++ library to be built on older versions of gcc. --- src/H5public.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/H5public.h b/src/H5public.h index b5488891910..aefbf46816e 100644 --- a/src/H5public.h +++ b/src/H5public.h @@ -43,6 +43,10 @@ #include /* For variadic functions in H5VLpublic.h */ #include /* For C9x types */ + +#ifdef __cplusplus +#define __STDC_FORMAT_MACROS +#endif #include /* C99/POSIX.1 header for uint64_t, PRIu64 */ #ifdef H5_HAVE_STDDEF_H From 12d6cbaf0ba59fa195166d7bebe17113b367fda7 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 4 Jun 2021 18:20:30 +0000 Subject: [PATCH 2/2] Committing clang-format changes --- src/H5public.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/H5public.h b/src/H5public.h index aefbf46816e..4397d87f2d1 100644 --- a/src/H5public.h +++ b/src/H5public.h @@ -42,7 +42,7 @@ #include /* For H5T_NATIVE_CHAR defn in H5Tpublic.h */ #include /* For variadic functions in H5VLpublic.h */ -#include /* For C9x types */ +#include /* For C9x types */ #ifdef __cplusplus #define __STDC_FORMAT_MACROS