Remove `[NativeTypeName("unsigned int")]`

This would appear a lot when bindgen is run on Linux (underlying enum type is unsigned int).
This commit is contained in:
Susko3 2024-10-24 00:52:29 +01:00
parent fa61d32dfc
commit ec696f7bab
2 changed files with 4 additions and 1 deletions

View File

@ -338,7 +338,7 @@ namespace SDL
[DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, EntryPoint = "SDL_uitoa", ExactSpelling = true)]
[return: NativeTypeName("char *")]
public static extern byte* Unsafe_SDL_uitoa([NativeTypeName("unsigned int")] uint value, [NativeTypeName("char *")] byte* str, int radix);
public static extern byte* Unsafe_SDL_uitoa(uint value, [NativeTypeName("char *")] byte* str, int radix);
[DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, EntryPoint = "SDL_ltoa", ExactSpelling = true)]
[return: NativeTypeName("char *")]

View File

@ -261,6 +261,9 @@ base_command = [
"wchar_t *=IntPtr", # wchar_t has a platform-defined size
"bool=SDLBool", # treat bool as C# helper type
"--nativeTypeNamesToStrip",
"unsigned int",
"--define-macro",
"SDL_FUNCTION_POINTER_IS_VOID_POINTER",