From 698984c0fe9a551e8ac1fb3e9e4708e52d785334 Mon Sep 17 00:00:00 2001 From: Anonimus Date: Mon, 25 Aug 2025 17:42:59 -0400 Subject: [PATCH] Fix major compile issues * Fixes gme issues (hopefully) * Adds ntsecapi.h for Windows compiling --- src/sdl/i_system.cpp | 5 +++++ thirdparty/cpm-libgme.cmake | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/sdl/i_system.cpp b/src/sdl/i_system.cpp index b21047c8f..41d289acc 100644 --- a/src/sdl/i_system.cpp +++ b/src/sdl/i_system.cpp @@ -57,6 +57,11 @@ typedef LPVOID (WINAPI *p_MapViewOfFile) (HANDLE, DWORD, DWORD, DWORD, SIZE_T); #include #ifdef _WIN32 +// This is for RtlGenRandom. +#define SystemFunction036 NTAPI SystemFunction036 +#include +#undef SystemFunction036 + #include // This is for RtlGenRandom. diff --git a/thirdparty/cpm-libgme.cmake b/thirdparty/cpm-libgme.cmake index 1786ad0ec..837d4287c 100644 --- a/thirdparty/cpm-libgme.cmake +++ b/thirdparty/cpm-libgme.cmake @@ -11,5 +11,4 @@ CPMAddPackage( if(libgme_ADDED) target_compile_features(gme PRIVATE cxx_std_11) - target_link_libraries(gme PRIVATE ZLIB::ZLIB) endif()