mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Thirdparty: Fix SDL arm64 compilation on Windows
This commit is contained in:
parent
53be3b78d1
commit
fab646329b
2 changed files with 14 additions and 1 deletions
13
thirdparty/sdl/patches/0004-errno-include.patch
vendored
Normal file
13
thirdparty/sdl/patches/0004-errno-include.patch
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
diff --git a/thirdparty/sdl/stdlib/SDL_malloc.c b/thirdparty/sdl/stdlib/SDL_malloc.c
|
||||
index 008675f312..00118b8ae6 100644
|
||||
--- a/thirdparty/sdl/stdlib/SDL_malloc.c
|
||||
+++ b/thirdparty/sdl/stdlib/SDL_malloc.c
|
||||
@@ -586,7 +586,7 @@ MAX_RELEASE_CHECK_RATE default: 4095 unless not HAVE_MMAP
|
||||
#define LACKS_STRING_H
|
||||
#define LACKS_STRINGS_H
|
||||
#define LACKS_SYS_TYPES_H
|
||||
-#define LACKS_ERRNO_H
|
||||
+// #define LACKS_ERRNO_H // File uses `EINVAL` and `ENOMEM` defines, so include is required. Legacy exclusion?
|
||||
#define LACKS_SCHED_H
|
||||
#ifndef MALLOC_FAILURE_ACTION
|
||||
#define MALLOC_FAILURE_ACTION
|
2
thirdparty/sdl/stdlib/SDL_malloc.c
vendored
2
thirdparty/sdl/stdlib/SDL_malloc.c
vendored
|
@ -586,7 +586,7 @@ MAX_RELEASE_CHECK_RATE default: 4095 unless not HAVE_MMAP
|
|||
#define LACKS_STRING_H
|
||||
#define LACKS_STRINGS_H
|
||||
#define LACKS_SYS_TYPES_H
|
||||
#define LACKS_ERRNO_H
|
||||
// #define LACKS_ERRNO_H // File uses `EINVAL` and `ENOMEM` defines, so include is required. Legacy exclusion?
|
||||
#define LACKS_SCHED_H
|
||||
#ifndef MALLOC_FAILURE_ACTION
|
||||
#define MALLOC_FAILURE_ACTION
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue