diff --git a/src/utils/ncmpidump/ncmpidump.h b/src/utils/ncmpidump/ncmpidump.h index 290c16e91..1d1604f54 100644 --- a/src/utils/ncmpidump/ncmpidump.h +++ b/src/utils/ncmpidump/ncmpidump.h @@ -15,10 +15,15 @@ #define Printf (void) printf +#if defined(HAVE_STDBOOL_H) && HAVE_STDBOOL_H == 1 +#include /* type false and true */ +typedef bool boolean; +#else typedef int boolean; #if !defined(__STDC_VERSION__) || __STDC_VERSION__ < 202311L enum {false=0, true=1}; #endif +#endif struct ncdim { /* dimension */ char name[NC_MAX_NAME];