mirror of https://github.com/ppy/SDL3-CS.git
Exclude `SDL_main()` from DllImport as it isn't exported by SDL3.dll
This commit is contained in:
parent
52d13f2972
commit
4ed850c6f3
|
|
@ -41,8 +41,5 @@ namespace SDL
|
|||
[DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
[SupportedOSPlatform("Windows")]
|
||||
public static extern void SDL_GDKSuspendComplete();
|
||||
|
||||
[NativeTypeName("#define main SDL_main")]
|
||||
public static readonly delegate*<int, sbyte**, int> main = &SDL_main;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -29,9 +29,6 @@ namespace SDL
|
|||
{
|
||||
public static unsafe partial class SDL3
|
||||
{
|
||||
[DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern int SDL_main(int argc, [NativeTypeName("char *[]")] sbyte** argv);
|
||||
|
||||
[DllImport("SDL3", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
|
||||
public static extern void SDL_SetMainReady();
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,7 @@
|
|||
# Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
||||
# See the LICENCE file in the repository root for full licence text.
|
||||
|
||||
# Exclude definition that are only useful when building C applications.
|
||||
--exclude
|
||||
SDL_main
|
||||
main
|
||||
Loading…
Reference in New Issue