[sdl2-net] fix uwp (#33688)

This commit is contained in:
autoantwort 2023-10-10 00:07:23 +02:00 committed by GitHub
parent 6b09245259
commit 0e85eeb82a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 22 additions and 4 deletions

View 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

View File

@ -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(

View File

@ -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",

View File

@ -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

View File

@ -7570,7 +7570,7 @@
},
"sdl2-net": {
"baseline": "2.2.0",
"port-version": 1
"port-version": 2
},
"sdl2-ttf": {
"baseline": "2.20.2",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "755d96f16afae7c5b7cae15eb97fe5da85951a72",
"version": "2.2.0",
"port-version": 2
},
{
"git-tree": "b34dc64f26f414003d909391145491128bdcf636",
"version": "2.2.0",