From 69c7e23842d441b058b5624472752d7dcd7272df Mon Sep 17 00:00:00 2001 From: Susko3 Date: Thu, 24 Oct 2024 10:44:19 +0100 Subject: [PATCH] Fix 64-bit integers on `x86_64-linux-gnu` The __LP64__ macros work fine on aarch64, but they don't seem to do much on x86_64 --- SDL3-CS/generate_bindings.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/SDL3-CS/generate_bindings.py b/SDL3-CS/generate_bindings.py index d6ea2c1..004ff66 100644 --- a/SDL3-CS/generate_bindings.py +++ b/SDL3-CS/generate_bindings.py @@ -262,9 +262,11 @@ base_command = [ "bool=SDLBool", # treat bool as C# helper type "__va_list=byte*", "__va_list_tag=byte", + "Sint64=long", + "Uint64=ulong", "--with-type", - "*=int", # all types should be ints by default + "*=int", # all enum types should be ints by default "--nativeTypeNamesToStrip", "unsigned int", @@ -273,7 +275,7 @@ base_command = [ "SDL_FUNCTION_POINTER_IS_VOID_POINTER", "SDL_SINT64_C(c)=c ## LL", "SDL_UINT64_C(c)=c ## ULL", - "SDL_DECLSPEC=", # Not supported by llvm + "SDL_DECLSPEC=", # Not supported by llvm # Undefine platform-specific macros - these will be defined on a per-case basis later. "--additional",