From dcf6e1b1fd93d3afa7e0c5869c16d9760a3b4ece Mon Sep 17 00:00:00 2001 From: Jack <66967891+ASpoonPlaysGames@users.noreply.github.com> Date: Wed, 3 Jan 2024 23:32:20 +0000 Subject: Use .def for function exports (#625) Cherry-picked from primedev Co-authored-by: F1F7Y --- primedev/Northstar.cmake | 2 +- primedev/Northstar.def | 4 ++++ primedev/dllmain.cpp | 1 - primedev/dllmain.h | 3 --- 4 files changed, 5 insertions(+), 5 deletions(-) create mode 100644 primedev/Northstar.def delete mode 100644 primedev/dllmain.h diff --git a/primedev/Northstar.cmake b/primedev/Northstar.cmake index 50b6adfd..433326c2 100644 --- a/primedev/Northstar.cmake +++ b/primedev/Northstar.cmake @@ -150,8 +150,8 @@ add_library( "util/wininfo.cpp" "util/wininfo.h" "dllmain.cpp" - "dllmain.h" "ns_version.h" + "Northstar.def" ) target_link_libraries( diff --git a/primedev/Northstar.def b/primedev/Northstar.def new file mode 100644 index 00000000..4e3c5318 --- /dev/null +++ b/primedev/Northstar.def @@ -0,0 +1,4 @@ +LIBRARY dedicated + +EXPORTS + InitialiseNorthstar @1 diff --git a/primedev/dllmain.cpp b/primedev/dllmain.cpp index 3d9bdc97..a656dac7 100644 --- a/primedev/dllmain.cpp +++ b/primedev/dllmain.cpp @@ -1,4 +1,3 @@ -#include "dllmain.h" #include "logging/logging.h" #include "logging/crashhandler.h" #include "core/memalloc.h" diff --git a/primedev/dllmain.h b/primedev/dllmain.h deleted file mode 100644 index 0debf379..00000000 --- a/primedev/dllmain.h +++ /dev/null @@ -1,3 +0,0 @@ -#pragma once - -extern "C" __declspec(dllexport) bool InitialiseNorthstar(); -- cgit v1.2.3