diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-04-24 16:52:18 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-04-24 16:52:18 -0700 |
commit | 8efd63b233df833d191b35adcc5ce58598367dbc (patch) | |
tree | ab4840d0f1b2564e1ea03d720594f7fabba2f589 | |
parent | 92a5a5c35b39543a2feaeea247eb7390cd3a9e94 (diff) | |
download | subsurface-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>
-rw-r--r-- | divelist.h | 8 |
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; |