mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-03-31 17:10:47 +08:00
Adds __STDC_FORMAT_MACROS before including inttypes.h w/ C++ (#726)
* Adds __STDC_FORMAT_MACROS before including inttypes.h w/ C++ Allows C++ library to be built on older versions of gcc. * Committing clang-format changes Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
parent
9bf274e21a
commit
ce5f1ff1c5
@ -42,7 +42,11 @@
|
||||
#include <limits.h> /* For H5T_NATIVE_CHAR defn in H5Tpublic.h */
|
||||
#include <stdarg.h> /* For variadic functions in H5VLpublic.h */
|
||||
|
||||
#include <stdint.h> /* For C9x types */
|
||||
#include <stdint.h> /* For C9x types */
|
||||
|
||||
#ifdef __cplusplus
|
||||
#define __STDC_FORMAT_MACROS
|
||||
#endif
|
||||
#include <inttypes.h> /* C99/POSIX.1 header for uint64_t, PRIu64 */
|
||||
|
||||
#ifdef H5_HAVE_STDDEF_H
|
||||
|
Loading…
x
Reference in New Issue
Block a user