From a64cdd9e4f409cfcd30722bb95f9bb6cc44a1f44 Mon Sep 17 00:00:00 2001 From: Dan Balasescu Date: Tue, 22 Oct 2024 18:10:10 +0900 Subject: [PATCH] Fix SDL_thread generation --- SDL3-CS/SDL3/ClangSharp/SDL_thread.g.cs | 6 ------ SDL3-CS/SDL3/SDL_thread.rsp | 4 ++++ 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/SDL3-CS/SDL3/ClangSharp/SDL_thread.g.cs b/SDL3-CS/SDL3/ClangSharp/SDL_thread.g.cs index 49b61b3..6ba1b5f 100644 --- a/SDL3-CS/SDL3/ClangSharp/SDL_thread.g.cs +++ b/SDL3-CS/SDL3/ClangSharp/SDL_thread.g.cs @@ -79,12 +79,6 @@ namespace SDL [DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)] public static extern void SDL_CleanupTLS(); - [NativeTypeName("#define SDL_BeginThreadFunction NULL")] - public const int SDL_BeginThreadFunction = 0; - - [NativeTypeName("#define SDL_EndThreadFunction NULL")] - public const int SDL_EndThreadFunction = 0; - [NativeTypeName("#define SDL_PROP_THREAD_CREATE_ENTRY_FUNCTION_POINTER \"SDL.thread.create.entry_function\"")] public static ReadOnlySpan SDL_PROP_THREAD_CREATE_ENTRY_FUNCTION_POINTER => "SDL.thread.create.entry_function"u8; diff --git a/SDL3-CS/SDL3/SDL_thread.rsp b/SDL3-CS/SDL3/SDL_thread.rsp index 6b497c5..49e043b 100644 --- a/SDL3-CS/SDL3/SDL_thread.rsp +++ b/SDL3-CS/SDL3/SDL_thread.rsp @@ -8,3 +8,7 @@ SDL_CreateThread=System.Runtime.Versioning --with-attribute SDL_CreateThread=UnsupportedOSPlatform("windows") SDL_CreateThreadWithStackSize=UnsupportedOSPlatform("windows") + +--exclude +SDL_BeginThreadFunction +SDL_EndThreadFunction \ No newline at end of file