summaryrefslogtreecommitdiffstats
path: root/dive.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-10-09 07:23:16 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-10-09 07:23:16 -0700
commitbed44e65ec76d1a1c2effd98a294d102120ba4db (patch)
tree4b4c4f775a90f0eb3d93aa098698861a95b301bb /dive.h
parent0b5b671dd9ced84188b032149033de1165fb28b1 (diff)
downloadsubsurface-bed44e65ec76d1a1c2effd98a294d102120ba4db.tar.gz
Only define TRUE and FALSE if they aren't defined already
We did this for some situations but not for all. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'dive.h')
-rw-r--r--dive.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/dive.h b/dive.h
index 8657ffe13..aec59f6f9 100644
--- a/dive.h
+++ b/dive.h
@@ -29,8 +29,12 @@ 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