mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-06-04 10:57:40 +00:00
Changed SDL_bool from an enum to unsigned int
Fixes https://github.com/libsdl-org/SDL/issues/7957
This commit is contained in:
parent
cf7e5bd0e8
commit
a76d8e39aa
1 changed files with 4 additions and 10 deletions
|
@ -122,18 +122,12 @@ char *alloca();
|
||||||
*/
|
*/
|
||||||
/* @{ */
|
/* @{ */
|
||||||
|
|
||||||
#ifdef __CC_ARM
|
/**
|
||||||
/* ARM's compiler throws warnings if we use an enum: like "SDL_bool x = a < b;" */
|
* \brief A boolean type.
|
||||||
|
*/
|
||||||
#define SDL_FALSE 0
|
#define SDL_FALSE 0
|
||||||
#define SDL_TRUE 1
|
#define SDL_TRUE 1
|
||||||
typedef int SDL_bool;
|
typedef unsigned int SDL_bool;
|
||||||
#else
|
|
||||||
typedef enum
|
|
||||||
{
|
|
||||||
SDL_FALSE = 0,
|
|
||||||
SDL_TRUE = 1
|
|
||||||
} SDL_bool;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief A signed 8-bit integer type.
|
* \brief A signed 8-bit integer type.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue