mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-27 08:18:41 +00:00
stdinc: Add a little comment to SDL_bool for wikiheaders.
This commit is contained in:
parent
a442367706
commit
cf83ffd8a1
1 changed files with 6 additions and 1 deletions
|
|
@ -178,12 +178,17 @@ void *alloca(size_t);
|
|||
/* @{ */
|
||||
|
||||
#ifdef __CC_ARM
|
||||
#ifndef SDL_WIKI_DOCUMENTATION_SECTION
|
||||
/* ARM's compiler throws warnings if we use an enum: like "SDL_bool x = a < b;" */
|
||||
#define SDL_FALSE 0
|
||||
#define SDL_TRUE 1
|
||||
typedef int SDL_bool;
|
||||
#endif
|
||||
#else
|
||||
typedef enum
|
||||
/**
|
||||
* A boolean (true/false) type.
|
||||
*/
|
||||
typedef enum SDL_bool
|
||||
{
|
||||
SDL_FALSE = 0,
|
||||
SDL_TRUE = 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue