diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2017-07-24 03:25:41 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2017-07-24 03:25:41 +0200 |
commit | 9729af15e9138493e435b8db46e89180f5bfb5c2 (patch) | |
tree | 4e3382fea98c8fc3047637e162f05af0e31a5f39 /dinput | |
parent | 98c67ff5301e99fded504fbdcb49f219d06cd2ac (diff) |
dinput: less boilerplate
Diffstat (limited to 'dinput')
-rw-r--r-- | dinput/dinput.hpp | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/dinput/dinput.hpp b/dinput/dinput.hpp index 86828b00..fc73a90a 100644 --- a/dinput/dinput.hpp +++ b/dinput/dinput.hpp @@ -10,21 +10,10 @@ #include "export.hpp" -#ifdef Q_MOC_RUN -typedef void* LPDIRECTINPUT8; -#else -#ifndef DIRECTINPUT_VERSION -# define DIRECTINPUT_VERSION 0x800 +#undef DIRECTINPUT_VERSION +#define DIRECTINPUT_VERSION 0x800 #include <dinput.h> -#endif #include <atomic> -#endif - -#if defined(_MSC_VER) -# if defined BUILD_DINPUT - template struct __declspec(dllexport) std::atomic<int>; -# endif -#endif class OTR_DINPUT_EXPORT dinput_handle final { |