From 33391a77e9385cf403c2fb1b191b443fcf373294 Mon Sep 17 00:00:00 2001 From: Anton Lundin Date: Wed, 15 Jan 2014 19:54:41 +0100 Subject: Convert the C code to using stdbool and true/false Earlier we converted the C++ code to using true/false, and this converts the C code to using the same style. We already depended on stdbool.h in subsurfacestartup.[ch], and we build with -std=gnu99 so nobody could build subsurface without a c99 compiler. [Dirk Hohndel: small change suggested by Thiago Macieira: don't include stdbool.h for C++] Signed-off-by: Anton Lundin Signed-off-by: Dirk Hohndel --- dive.h | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'dive.h') diff --git a/dive.h b/dive.h index 2b69c949c..d3bada163 100644 --- a/dive.h +++ b/dive.h @@ -28,23 +28,7 @@ #ifdef __cplusplus extern "C" { #else -#if __STDC_VERSION__ >= 199901L #include -#ifndef TRUE -#define TRUE true -#endif -#ifndef FALSE -#define FALSE false -#endif -#else -typedef int bool; -#ifndef TRUE -#define TRUE 1 -#endif -#ifndef FALSE -#define FALSE 0 -#endif -#endif #endif #define O2_IN_AIR 209 // permille -- cgit v1.2.3-70-g09d2