From 8efd63b233df833d191b35adcc5ce58598367dbc Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 24 Apr 2013 16:52:18 -0700 Subject: [PATCH] MSVC is c89 In case someone wants to compile this with an outdated C compiler... Signed-off-by: Dirk Hohndel --- divelist.h | 8 ++++++-- 1 file 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 +#else +typedef int bool; +#endif +#endif struct dive;