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>
This commit is contained in:
Dirk Hohndel 2013-10-09 07:23:16 -07:00
parent 0b5b671dd9
commit bed44e65ec

4
dive.h
View file

@ -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