fixing mingw errors
VoidLoader/VoidLoaderCore/pipeline/head There was a failure building this commit

Signed-off-by: Faumaray <faumaray@gmail.com>
This commit is contained in:
faumaray committed 2025-10-21 00:37:32 +03:00
1 parent 71bfa7b32d
commit d377702c17
6 files changed
+17 -32

No files matched your search

+6
View File
@@ -54,6 +54,12 @@ else()
add_compile_options(-fPIC)
endif()
if (MINGW OR WIN32)
list(FILTER SOURCES EXCLUDE REGEX "LoadLibraryUnix\\.cpp$")
else()
list(FILTER SOURCES EXCLUDE REGEX "LoadLibraryWin\\.cpp$")
endif()
# ============================================================
# Build shared library
# ============================================================
+8 -5
View File
@@ -1,6 +1,9 @@
#pragma once
#if defined(_WIN32)
# include <Mods/LoadLibraryWin.hpp>
#else
# include <Mods/LoadLibraryUnix.hpp>
#endif
#include <string>
namespace vl::mod {
void* LoadLibrary(const std::string& path, bool isGlobal);
bool CloseLibrary(void* handle);
void* LoadSymbol(void* handle, const std::string& name);
}
-11
View File
@@ -1,11 +0,0 @@
#pragma once
#if defined(unix)
#include <string>
namespace vl::mod {
void* LoadLibrary(const std::string& path, bool isGlobal);
bool CloseLibrary(void* handle);
void* LoadSymbol(void* handle, const std::string& name);
}
#endif
-10
View File
@@ -1,10 +0,0 @@
#pragma once
#if defined(_WIN32)
#include <string>
namespace vl::mod {
void* LoadLibrary(const std::string& path, bool isGlobal);
bool CloseLibrary(void* handle);
void* LoadSymbol(void* handle, const std::string& name);
}
#endif
+1 -1
View File
@@ -1,6 +1,6 @@
#if defined(unix)
#include <Mods/LoadLibraryUnix.hpp>
#include <Mods/LoadLibrary.hpp>
#include <dlfcn.h>
namespace vl::mod {
void* LoadLibrary(const std::string& path, bool isGlobal)
+2 -5
View File
@@ -1,6 +1,4 @@
#if defined(_WIN32)
#include <Mods/LoadLibraryWin.hpp>
#include <Mods/LoadLibrary.hpp>
#include <assert.h>
#include <cstdint>
#include <windows.h>
@@ -112,5 +110,4 @@ namespace vl::mod {
{
return (void*)(uintptr_t) GetProcAddress(static_cast<HMODULE>(handle), name.c_str());
}
}
#endif
}