Core/Prerequesites: Add CHAR_BIT == 8 check
This commit is contained in:
parent
c523e3cde5
commit
ac05e022f8
|
|
@ -155,8 +155,11 @@
|
|||
#define NazaraStringifyMacro(s) NazaraStringify(s) // http://gcc.gnu.org/onlinedocs/cpp/Stringification.html#Stringification
|
||||
#define NazaraUnused(a) (void) a
|
||||
|
||||
#include <climits>
|
||||
#include <cstdint>
|
||||
|
||||
static_assert(CHAR_BIT == 8, "CHAR_BIT is expected to be 8");
|
||||
|
||||
static_assert(sizeof(int8_t) == 1, "int8_t is not of the correct size" );
|
||||
static_assert(sizeof(int16_t) == 2, "int16_t is not of the correct size");
|
||||
static_assert(sizeof(int32_t) == 4, "int32_t is not of the correct size");
|
||||
|
|
|
|||
Loading…
Reference in New Issue