From 2d4cc95759c1d98fc07859ba1cdc0db4542dd360 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 20 Jun 2017 08:08:55 +0200 Subject: dinput: prevent exporting symbols from the executable --- dinput/dinput.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dinput/dinput.hpp b/dinput/dinput.hpp index afc29d29..86828b00 100644 --- a/dinput/dinput.hpp +++ b/dinput/dinput.hpp @@ -21,7 +21,9 @@ typedef void* LPDIRECTINPUT8; #endif #if defined(_MSC_VER) - template struct __declspec(dllexport) std::atomic; +# if defined BUILD_DINPUT + template struct __declspec(dllexport) std::atomic; +# endif #endif class OTR_DINPUT_EXPORT dinput_handle final -- cgit v1.2.3