summaryrefslogtreecommitdiffstats
path: root/dive.h
diff options
context:
space:
mode:
Diffstat (limited to 'dive.h')
-rw-r--r--dive.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/dive.h b/dive.h
index c13cac0aa..0c2e5b721 100644
--- a/dive.h
+++ b/dive.h
@@ -17,6 +17,12 @@
#ifdef __cplusplus
extern "C" {
+#else
+#if __STDC_VERSION__ >= 199901L
+#include <stdbool.h>
+#else
+typedef int bool;
+#endif
#endif
#define O2_IN_AIR 209 // permille
@@ -32,7 +38,6 @@ extern "C" {
#define SEAWATER_SALINITY 10300
#define FRESHWATER_SALINITY 10000
-
/*
* Some silly typedefs to make our units very explicit.
*