From 2d529bcb82853edcbbaca0187b4bf2a9f751fdea Mon Sep 17 00:00:00 2001 From: Lectem Date: Sun, 17 Sep 2017 14:28:01 +0200 Subject: Add STORMLIB_NO_AUTO_LINK define to disable linking with pragma --- src/StormLib.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/StormLib.h b/src/StormLib.h index f7512e5..45dda2e 100644 --- a/src/StormLib.h +++ b/src/StormLib.h @@ -99,8 +99,11 @@ extern "C" { // Z - S for static-linked CRT library, D for multithreaded DLL CRT library // -#if defined(_MSC_VER) && !defined(__STORMLIB_SELF__) - +#if defined(__STORMLIB_SELF__) && !defined(STORMLIB_NO_AUTO_LINK) +#define STORMLIB_NO_AUTO_LINK // Define this if you don't want to link using pragmas when using msvc +#endif + +#if defined(_MSC_VER) && !defined(STORMLIB_NO_AUTO_LINK) #ifdef _DEBUG // DEBUG VERSIONS #ifndef _UNICODE #ifdef _DLL -- cgit v1.2.3