From ffd4b78b9885322ecce554425de5ca4232f8554b Mon Sep 17 00:00:00 2001 From: jmortiger Date: Fri, 25 Apr 2025 08:22:00 -0400 Subject: [PATCH] Fix Linux Build Changes `s32` & `u32` to be typed as `signed int` & `unsigned int` instead of `signed long int` & `unsigned long int`, as this resolves to 64 bits on x64 Linux & 32 bits on Windows, while `signed int` & `unsigned int` resolve to 32 bits on Windows & x64 Linux. --- FitdLib/config.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/FitdLib/config.h b/FitdLib/config.h index 5e62851..2044f3f 100644 --- a/FitdLib/config.h +++ b/FitdLib/config.h @@ -1,7 +1,7 @@ #pragma once #if __cplusplus -#include +#include #include #endif @@ -37,10 +37,10 @@ #define USE_IMGUI #define USE_OPENGL_3_2 #endif - -#ifdef AITD_UE4 -#undef USE_IMGUI -#endif + +#ifdef AITD_UE4 +#undef USE_IMGUI +#endif #ifdef MACOSX #define UNIX @@ -59,11 +59,11 @@ typedef int32_t s32; #else typedef unsigned char u8; typedef unsigned short int u16; -typedef unsigned long int u32; +typedef unsigned int u32; typedef signed char s8; typedef signed short int s16; -typedef signed long int s32; +typedef signed int s32; #endif #include