summaryrefslogtreecommitdiffstats
path: root/divelist.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-04-24 16:52:18 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-04-24 16:52:18 -0700
commit8efd63b233df833d191b35adcc5ce58598367dbc (patch)
treeab4840d0f1b2564e1ea03d720594f7fabba2f589 /divelist.h
parent92a5a5c35b39543a2feaeea247eb7390cd3a9e94 (diff)
downloadsubsurface-8efd63b233df833d191b35adcc5ce58598367dbc.tar.gz
MSVC is c89
In case someone wants to compile this with an outdated C compiler... Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'divelist.h')
-rw-r--r--divelist.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/divelist.h b/divelist.h
index e3ff1be09..47680f9b2 100644
--- a/divelist.h
+++ b/divelist.h
@@ -3,9 +3,13 @@
#ifdef __cplusplus
extern "C" {
-#endif
-
+#else
+#if __STDC_VERSION__ >= 199901L
#include <stdbool.h>
+#else
+typedef int bool;
+#endif
+#endif
struct dive;