Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds __STDC_FORMAT_MACROS before including inttypes.h w/ C++ #726

Merged
merged 2 commits into from
Jun 4, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/H5public.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down