mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
0b5b671dd9
commit
bed44e65ec
1 changed files with 4 additions and 0 deletions
4
dive.h
4
dive.h
|
@ -29,8 +29,12 @@ extern "C" {
|
||||||
#else
|
#else
|
||||||
#if __STDC_VERSION__ >= 199901L
|
#if __STDC_VERSION__ >= 199901L
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
#ifndef TRUE
|
||||||
#define TRUE true
|
#define TRUE true
|
||||||
|
#endif
|
||||||
|
#ifndef FALSE
|
||||||
#define FALSE false
|
#define FALSE false
|
||||||
|
#endif
|
||||||
#else
|
#else
|
||||||
typedef int bool;
|
typedef int bool;
|
||||||
#ifndef TRUE
|
#ifndef TRUE
|
||||||
|
|
Loading…
Add table
Reference in a new issue