Fix major compile issues

* Fixes gme issues (hopefully)
* Adds ntsecapi.h for Windows compiling
This commit is contained in:
Anonimus 2025-08-25 17:42:59 -04:00
parent 9d0c396c2d
commit 698984c0fe
2 changed files with 5 additions and 1 deletions

View file

@ -57,6 +57,11 @@ typedef LPVOID (WINAPI *p_MapViewOfFile) (HANDLE, DWORD, DWORD, DWORD, SIZE_T);
#include <stdio.h>
#ifdef _WIN32
// This is for RtlGenRandom.
#define SystemFunction036 NTAPI SystemFunction036
#include <ntsecapi.h>
#undef SystemFunction036
#include <conio.h>
// This is for RtlGenRandom.

View file

@ -11,5 +11,4 @@ CPMAddPackage(
if(libgme_ADDED)
target_compile_features(gme PRIVATE cxx_std_11)
target_link_libraries(gme PRIVATE ZLIB::ZLIB)
endif()