Fix 64bit ints on mips

This commit is contained in:
Lucas Schumacher 2025-04-24 22:37:47 -04:00
parent bd9a3d3b99
commit 519de693ec

12
int.h
View File

@ -7,17 +7,17 @@
typedef unsigned char uint8_t; typedef unsigned char uint8_t;
typedef unsigned short uint16_t; typedef unsigned short uint16_t;
typedef unsigned int uint32_t; typedef unsigned int uint32_t;
typedef unsigned long uint64_t; typedef unsigned long long uint64_t;
typedef char int8_t; typedef char int8_t;
typedef short int16_t; typedef short int16_t;
typedef int int32_t; typedef int int32_t;
typedef long int64_t; typedef long long int64_t;
#if __WORDSIZE == 64 #if __WORDSIZE == 64
typedef long intptr_t; typedef int64_t intptr_t;
typedef unsigned long uintptr_t; typedef uint64_t uintptr_t;
#elif __WORDSIZE == 32 #elif __WORDSIZE == 32
typedef int intptr_t; typedef int32_t intptr_t;
typedef unsigned int uintptr_t; typedef uint32_t uintptr_t;
#endif #endif