summaryrefslogtreecommitdiffhomepage
path: root/ftnoir_protocol_vjoy
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-07-02 11:58:04 +0200
committerStanislaw Halik <sthalik@misaki.pl>2015-07-03 04:56:04 +0200
commit340906d3571ba3c75e67d8457de4129381d5a6b3 (patch)
treee6d502dcf39bb8f7eb5ee685da7781e51bf1b717 /ftnoir_protocol_vjoy
parent54dd13ffc6c16a149a55c75ce3dd3724fc8684b4 (diff)
try fix MSVC
Diffstat (limited to 'ftnoir_protocol_vjoy')
-rw-r--r--ftnoir_protocol_vjoy/ftnoir_protocol_vjoy.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/ftnoir_protocol_vjoy/ftnoir_protocol_vjoy.cpp b/ftnoir_protocol_vjoy/ftnoir_protocol_vjoy.cpp
index b636ffd4..63f75685 100644
--- a/ftnoir_protocol_vjoy/ftnoir_protocol_vjoy.cpp
+++ b/ftnoir_protocol_vjoy/ftnoir_protocol_vjoy.cpp
@@ -13,7 +13,9 @@ FTNoIR_Protocol::~FTNoIR_Protocol()
}
void FTNoIR_Protocol::pose( const double *headpose ) {
-#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
+#ifdef __GNUC__
+# pragma GCC diagnostic ignored "-Wmissing-field-initializers"
+#endif
JOYSTICK_STATE state[2] = { 0 };
state[0].POV = (4 << 12) | (4 << 8) | (4 << 4) | 4;