diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-10-09 07:23:16 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-10-09 07:23:16 -0700 |
commit | bed44e65ec76d1a1c2effd98a294d102120ba4db (patch) | |
tree | 4b4c4f775a90f0eb3d93aa098698861a95b301bb /dive.h | |
parent | 0b5b671dd9ced84188b032149033de1165fb28b1 (diff) | |
download | subsurface-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.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |