summaryrefslogtreecommitdiffstats
path: root/core/units.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/units.h')
-rw-r--r--core/units.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/units.h b/core/units.h
index ff1ae3430..21f646f79 100644
--- a/core/units.h
+++ b/core/units.h
@@ -9,6 +9,8 @@
#ifdef __cplusplus
extern "C" {
+#else
+#include <stdbool.h>
#endif
#define O2_IN_AIR 209 // permille
@@ -263,7 +265,7 @@ struct units {
MINUTES_ONLY,
ALWAYS_HOURS
} duration_units;
- int show_units_table;
+ bool show_units_table;
};
/*