Fix SDL_thread generation

This commit is contained in:
Dan Balasescu 2024-10-22 18:10:10 +09:00
parent 5227b62690
commit a64cdd9e4f
No known key found for this signature in database
2 changed files with 4 additions and 6 deletions

View File

@ -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<byte> SDL_PROP_THREAD_CREATE_ENTRY_FUNCTION_POINTER => "SDL.thread.create.entry_function"u8;

View File

@ -8,3 +8,7 @@ SDL_CreateThread=System.Runtime.Versioning
--with-attribute
SDL_CreateThread=UnsupportedOSPlatform("windows")
SDL_CreateThreadWithStackSize=UnsupportedOSPlatform("windows")
--exclude
SDL_BeginThreadFunction
SDL_EndThreadFunction