mirror of https://github.com/libsdl-org/SDL
Fixed SDL_DEFINE_STDBOOL logic if __bool_true_false_are_defined is defined
This commit is contained in:
parent
46fb2c6f1b
commit
ea640894d3
|
@ -44,11 +44,13 @@
|
||||||
#endif
|
#endif
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#ifndef __cplusplus
|
#ifndef __cplusplus
|
||||||
#if defined(SDL_DEFINE_STDBOOL) && !defined(__bool_true_false_are_defined)
|
#ifdef SDL_DEFINE_STDBOOL
|
||||||
|
#ifndef __bool_true_false_are_defined
|
||||||
#define __bool_true_false_are_defined 1
|
#define __bool_true_false_are_defined 1
|
||||||
#define bool int8_t
|
#define bool int8_t
|
||||||
#define false 0
|
#define false 0
|
||||||
#define true 1
|
#define true 1
|
||||||
|
#endif
|
||||||
#else
|
#else
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue