From 607e4458e775e17de450f550e7d412ef41013138 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 30 Jun 2015 21:12:13 +0200 Subject: + Forwarded exports moved to DEF file --- stormlib_dll/DllMain.c | 6 ------ stormlib_dll/StormLib.def | 3 +++ 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/stormlib_dll/DllMain.c b/stormlib_dll/DllMain.c index 1ea4b09..f1b9167 100644 --- a/stormlib_dll/DllMain.c +++ b/stormlib_dll/DllMain.c @@ -11,12 +11,6 @@ #define WIN32_LEAN_AND_MEAN #include -//----------------------------------------------------------------------------- -// Forwarded exports - -#pragma comment(linker, "/export:GetLastError=Kernel32.GetLastError") -#pragma comment(linker, "/export:SetLastError=Kernel32.SetLastError") - //----------------------------------------------------------------------------- // DllMain diff --git a/stormlib_dll/StormLib.def b/stormlib_dll/StormLib.def index a85f942..4b48b13 100644 --- a/stormlib_dll/StormLib.def +++ b/stormlib_dll/StormLib.def @@ -73,3 +73,6 @@ EXPORTS SCompExplode SCompCompress SCompDecompress + + GetLastError=Kernel32.GetLastError + SetLastError=Kernel32.SetLastError -- cgit v1.2.3