summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-06-20 08:08:55 +0200
committerStanislaw Halik <sthalik@misaki.pl>2017-06-20 08:08:55 +0200
commit2d4cc95759c1d98fc07859ba1cdc0db4542dd360 (patch)
treed91213b3f3d9d8df3ca8d7c9cf24f6911c7bba05
parentc81b56c1c0057a7a68cfcc492ad1c1ad4f2369a9 (diff)
dinput: prevent exporting symbols from the executable
-rw-r--r--dinput/dinput.hpp4
1 files changed, 3 insertions, 1 deletions
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<int>;
+# if defined BUILD_DINPUT
+ template struct __declspec(dllexport) std::atomic<int>;
+# endif
#endif
class OTR_DINPUT_EXPORT dinput_handle final