Check INT_WIDTH and LONG_WIDTH... stupid GNU libc.

This commit is contained in:
Jordan Bancino 2022-12-24 01:00:36 +00:00
parent eeabe93e3f
commit 61e9cdbea3

View file

@ -29,10 +29,12 @@
#include <limits.h>
#if defined(LONG_BIT) && LONG_BIT == 32
#if (defined(LONG_BIT) && LONG_BIT == 32) || \
(defined(INT_WIDTH) && INT_WIDTH == 32)
typedef unsigned long uint32_t;
#elif defined(WORD_BIT) && WORD_BIT == 32
#elif (defined(WORD_BIT) && WORD_BIT == 32) || \
(defined(LONG_WIDTH) && LONG_WIDTH == 32)
typedef unsigned int uint32_t;
#else