LibC: Set (U)LONG_WIDTH correctly for 64-bit

All supported targets use an LP64 ABI, where both `long` and `long long`
are 64 bits wide. We set `LONG_WIDTH` to 32, which caused an error when
compiling gnulib's `vasnprintf` routine.

We might consider using built-in macros to avoid such issues in the
future.
This commit is contained in:
Daniel Bertalan 2023-08-11 15:16:32 +02:00 committed by Andrew Kaster
parent e2dcd97c88
commit 725584881a

View file

@ -56,8 +56,8 @@
#define INT_WIDTH 32
#define UINT_WIDTH 32
#define LONG_WIDTH 32
#define ULONG_WIDTH 32
#define LONG_WIDTH 64
#define ULONG_WIDTH 64
#define LLONG_WIDTH 64
#define ULLONG_WIDTH 64