mirror of https://github.com/libsdl-org/SDL.git
bool is 4 bytes in Apple MacOS X 32 bit PPC ABI
Reference issue: https://github.com/libsdl-org/SDL/issues/12749.
This commit is contained in:
parent
3b91017682
commit
5a59b5f321
|
|
@ -64,6 +64,9 @@
|
||||||
#define SDL_INCLUDE_STDBOOL_H
|
#define SDL_INCLUDE_STDBOOL_H
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
#if defined(__APPLE__) && defined(__ppc__) && !defined(SDL_INCLUDE_STDBOOL_H)
|
||||||
|
#define SDL_INCLUDE_STDBOOL_H
|
||||||
|
#endif
|
||||||
#if (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || \
|
#if (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || \
|
||||||
(defined(_MSC_VER) && (_MSC_VER >= 1910 /* Visual Studio 2017 */)) || \
|
(defined(_MSC_VER) && (_MSC_VER >= 1910 /* Visual Studio 2017 */)) || \
|
||||||
defined(SDL_INCLUDE_STDBOOL_H)
|
defined(SDL_INCLUDE_STDBOOL_H)
|
||||||
|
|
@ -1145,7 +1148,11 @@ SDL_COMPILE_TIME_ASSERT(longlong_size64, sizeof(long long) == 8); /* using I64 f
|
||||||
|
|
||||||
/** \cond */
|
/** \cond */
|
||||||
#ifndef DOXYGEN_SHOULD_IGNORE_THIS
|
#ifndef DOXYGEN_SHOULD_IGNORE_THIS
|
||||||
|
#if defined(__APPLE__) && defined(__ppc__) /* MacOSX PPC32 ABI is different. */
|
||||||
|
SDL_COMPILE_TIME_ASSERT(bool_size, sizeof(bool) == 4);
|
||||||
|
#else
|
||||||
SDL_COMPILE_TIME_ASSERT(bool_size, sizeof(bool) == 1);
|
SDL_COMPILE_TIME_ASSERT(bool_size, sizeof(bool) == 1);
|
||||||
|
#endif
|
||||||
SDL_COMPILE_TIME_ASSERT(uint8_size, sizeof(Uint8) == 1);
|
SDL_COMPILE_TIME_ASSERT(uint8_size, sizeof(Uint8) == 1);
|
||||||
SDL_COMPILE_TIME_ASSERT(sint8_size, sizeof(Sint8) == 1);
|
SDL_COMPILE_TIME_ASSERT(sint8_size, sizeof(Sint8) == 1);
|
||||||
SDL_COMPILE_TIME_ASSERT(uint16_size, sizeof(Uint16) == 2);
|
SDL_COMPILE_TIME_ASSERT(uint16_size, sizeof(Uint16) == 2);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue