mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-14 06:22:56 +08:00
[sdl2-net] fix uwp (#33688)
This commit is contained in:
parent
6b09245259
commit
0e85eeb82a
13
ports/sdl2-net/fix-uwp.patch
Normal file
13
ports/sdl2-net/fix-uwp.patch
Normal file
@ -0,0 +1,13 @@
|
||||
diff --git a/SDLnetUDP.c b/SDLnetUDP.c
|
||||
index ee4e46b..dc9b4b0 100644
|
||||
--- a/SDLnetUDP.c
|
||||
+++ b/SDLnetUDP.c
|
||||
@@ -22,7 +22,7 @@
|
||||
#include "SDLnetsys.h"
|
||||
#include "SDL_net.h"
|
||||
|
||||
-#if defined(__WIN32__) || defined(__OS2__)
|
||||
+#if defined(_WIN32) || defined(__OS2__)
|
||||
#define srandom srand
|
||||
#define random rand
|
||||
#endif
|
@ -4,6 +4,8 @@ vcpkg_from_github(
|
||||
REF 669e75b84632e2c6cc5c65974ec9e28052cb7a4e # release-2.2.0
|
||||
SHA512 180c757d704c72dc7fcc392c13942214c87b90de22e32045ec9eb6cde5da2b762516e14120d8bee52f7f4a59ad8e30d4f71e313918432ae07ef71df8e9380e4b
|
||||
HEAD_REF main
|
||||
PATCHES
|
||||
fix-uwp.patch
|
||||
)
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "sdl2-net",
|
||||
"version": "2.2.0",
|
||||
"port-version": 1,
|
||||
"port-version": 2,
|
||||
"description": "Networking library for SDL",
|
||||
"homepage": "https://github.com/libsdl-org/SDL_net",
|
||||
"license": "Zlib",
|
||||
|
@ -1100,8 +1100,6 @@ sdformat9:x64-windows-static-md=fail
|
||||
sdl1:arm-neon-android=fail
|
||||
sdl1:arm64-android=fail
|
||||
sdl1:x64-android=fail
|
||||
sdl2-net:arm64-uwp=fail
|
||||
sdl2-net:x64-uwp=fail
|
||||
sentencepiece:arm-neon-android=fail
|
||||
sentencepiece:arm64-android=fail
|
||||
sentencepiece:x64-android=fail
|
||||
|
@ -7570,7 +7570,7 @@
|
||||
},
|
||||
"sdl2-net": {
|
||||
"baseline": "2.2.0",
|
||||
"port-version": 1
|
||||
"port-version": 2
|
||||
},
|
||||
"sdl2-ttf": {
|
||||
"baseline": "2.20.2",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "755d96f16afae7c5b7cae15eb97fe5da85951a72",
|
||||
"version": "2.2.0",
|
||||
"port-version": 2
|
||||
},
|
||||
{
|
||||
"git-tree": "b34dc64f26f414003d909391145491128bdcf636",
|
||||
"version": "2.2.0",
|
||||
|
Loading…
x
Reference in New Issue
Block a user