aboutsummaryrefslogtreecommitdiffstats
path: root/dive.h
diff options
context:
space:
mode:
authorGravatar Anton Lundin <glance@acc.umu.se>2014-01-15 19:54:41 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-01-16 09:34:50 +0700
commit33391a77e9385cf403c2fb1b191b443fcf373294 (patch)
treef6f96b987f90419d4a2d6cfdec2f633d09252a07 /dive.h
parentdca59f06d70bd36d10704a08f8444152a82e99b8 (diff)
downloadsubsurface-33391a77e9385cf403c2fb1b191b443fcf373294.tar.gz
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 <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'dive.h')
-rw-r--r--dive.h16
1 files changed, 0 insertions, 16 deletions
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 <stdbool.h>
-#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