From 453462b7203efdb52263e33433dd9363bd13163d Mon Sep 17 00:00:00 2001 From: aap Date: Sat, 20 Jan 2018 15:21:26 +0100 Subject: [PATCH] compile without thread safe init for XP support --- premake5.lua | 2 ++ src/neoGlosspipe.cpp | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/premake5.lua b/premake5.lua index 0384a27..bdf189a 100644 --- a/premake5.lua +++ b/premake5.lua @@ -31,6 +31,8 @@ project "skygfx_vc" targetextension ".dll" characterset ("MBCS") + buildoptions { "/Zc:threadSafeInit-" } + filter "configurations:DebugIII" defines { "DEBUG" } flags { "StaticRuntime" } diff --git a/src/neoGlosspipe.cpp b/src/neoGlosspipe.cpp index 2b44226..43efd35 100644 --- a/src/neoGlosspipe.cpp +++ b/src/neoGlosspipe.cpp @@ -50,7 +50,6 @@ GlossPipe::Get(void) { static GlossPipe glosspipe; return &glosspipe; - } GlossPipe::GlossPipe(void)