summaryrefslogtreecommitdiffhomepage
path: root/dinput/dinput.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'dinput/dinput.hpp')
-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