mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-15 01:08:26 +00:00
Include stdbool.h when using Visual Studio 2017+
Also cleaned up some incorrect return values from bool functions.
This commit is contained in:
parent
522321b7c9
commit
4fa92d233d
9 changed files with 17 additions and 16 deletions
|
@ -46,6 +46,7 @@
|
|||
|
||||
#ifndef __cplusplus
|
||||
#if (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || \
|
||||
(defined(_MSC_VER) && (_MSC_VER >= 1910 /* Visual Studio 2017 */)) || \
|
||||
defined(SDL_INCLUDE_STDBOOL_H)
|
||||
#include <stdbool.h>
|
||||
#elif !defined(__bool_true_false_are_defined) && !defined(bool)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue