From e7b8e7a43f4bb481a93e69ee9e0efbd6b75e59ab Mon Sep 17 00:00:00 2001 From: TheRedDaemon <66257843+TheRedDaemon@users.noreply.github.com> Date: Thu, 14 May 2026 14:58:24 +0200 Subject: [PATCH] [PROJECT] remove global func from dll entry avoiding compile step --- src/entry.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/entry.cpp b/src/entry.cpp index ecb09fa..68f875b 100644 --- a/src/entry.cpp +++ b/src/entry.cpp @@ -1,16 +1,16 @@ -#include "OpenSHC/Global.func.hpp" +#ifdef OPEN_SHC_DLL #include "lua.h" -#ifdef OPEN_SHC_DLL - extern "C" __declspec(dllexport) int __cdecl luaopen_OpenSHC(lua_State* L) { return 0; } #endif #ifdef OPEN_SHC_EXE +#include "OpenSHC/Global.func.hpp" + int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR lpCmdLine, int nCmdShow) { return MACRO_CALL(OpenSHC::Global_Func::WinMain)(hInstance, hPrevInstance, lpCmdLine, nCmdShow);