Use stdbool for SDL_bool

This helps the compiler warn people when they're doing something like "if (SDL_Init(0) < 0)"
This commit is contained in:
Sam Lantinga
2024-08-26 16:49:57 -07:00
parent 9ff3446f03
commit f08ac438ed
4 changed files with 10 additions and 14 deletions

View File

@@ -121,16 +121,6 @@
#include <float.h>
#endif
#ifndef __cplusplus
#ifdef HAVE_STDBOOL_H
#include <stdbool.h>
#else
typedef int bool;
#define true 1
#define false 0
#endif
#endif // !__cplusplus
// If you run into a warning that O_CLOEXEC is redefined, update the SDL configuration header for your platform to add HAVE_O_CLOEXEC
#ifndef HAVE_O_CLOEXEC
#define O_CLOEXEC 0