summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-09-17 07:33:58 +0200
committerGitHub <noreply@github.com>2020-09-17 07:33:58 +0200
commitfcd0925ecff8022e33daf5b0385be1bd23eefcd5 (patch)
tree69e7200a0a8f36f57da5d01e436fa1595743e87d
parentMerge pull request #4663 from ReinUsesLisp/wswitch (diff)
parentgc_adapter: Disable MSVC nonstandard extension warning on libusb.h (diff)
downloadyuzu-fcd0925ecff8022e33daf5b0385be1bd23eefcd5.tar
yuzu-fcd0925ecff8022e33daf5b0385be1bd23eefcd5.tar.gz
yuzu-fcd0925ecff8022e33daf5b0385be1bd23eefcd5.tar.bz2
yuzu-fcd0925ecff8022e33daf5b0385be1bd23eefcd5.tar.lz
yuzu-fcd0925ecff8022e33daf5b0385be1bd23eefcd5.tar.xz
yuzu-fcd0925ecff8022e33daf5b0385be1bd23eefcd5.tar.zst
yuzu-fcd0925ecff8022e33daf5b0385be1bd23eefcd5.zip
-rw-r--r--src/input_common/gcadapter/gc_adapter.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/input_common/gcadapter/gc_adapter.cpp b/src/input_common/gcadapter/gc_adapter.cpp
index c6c423c4b..c507c9891 100644
--- a/src/input_common/gcadapter/gc_adapter.cpp
+++ b/src/input_common/gcadapter/gc_adapter.cpp
@@ -4,7 +4,16 @@
#include <chrono>
#include <thread>
+
+#ifdef _MSC_VER
+#pragma warning(push)
+#pragma warning(disable : 4200) // nonstandard extension used : zero-sized array in struct/union
+#endif
#include <libusb.h>
+#ifdef _MSC_VER
+#pragma warning(pop)
+#endif
+
#include "common/logging/log.h"
#include "input_common/gcadapter/gc_adapter.h"