diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2015-11-22 18:01:06 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2015-11-22 18:01:06 +0100 |
commit | 5d4a9c78fbbbd59d366e91bfe4c4263d12833abe (patch) | |
tree | 1e60751f78de22affeda114e16c79f333dc05fb1 /opentrack/win32-joystick.cpp | |
parent | 0c3a306b8588ae1cbe190ee18db2336bcd0eb527 (diff) |
api/joy: guard _WIN32 properly
Diffstat (limited to 'opentrack/win32-joystick.cpp')
-rw-r--r-- | opentrack/win32-joystick.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/opentrack/win32-joystick.cpp b/opentrack/win32-joystick.cpp index b4a1f9cd..56a1b070 100644 --- a/opentrack/win32-joystick.cpp +++ b/opentrack/win32-joystick.cpp @@ -1,5 +1,7 @@ #include "win32-joystick.hpp" +#ifdef _WIN32 + LPDIRECTINPUT8& win32_joy_ctx::dinput_handle() { (void) CoInitialize(nullptr); @@ -28,3 +30,5 @@ win32_joy_ctx& win32_joy_ctx::make() static win32_joy_ctx ret; return ret; } + +#endif |