REVIEWED: Avoid bool type collisions

This commit is contained in:
raysan5
2021-07-31 18:10:26 +02:00
parent 0f8cfd6031
commit b805754aa1
2 changed files with 8 additions and 4 deletions

View File

@@ -291,7 +291,7 @@ typedef struct rlRenderBatch {
#if defined(__STDC__) && __STDC_VERSION__ >= 199901L
#include <stdbool.h>
#elif !defined(__cplusplus) && !defined(bool)
#elif !defined(__cplusplus) && !defined(bool) && !defined(RL_BOOL_TYPE)
// Boolean type
typedef enum bool { false, true } bool;
#endif