Commit 305e5968aa6a39ab78c13383a43aa39857c7644a

Ozkan Sezer 2018-09-15T14:28:10

do not export hidapi symbols from SDL dlls (bug #4259).

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/hidapi/hidapi/hidapi.h b/src/hidapi/hidapi/hidapi.h
index 2057602..e9a74d5 100644
--- a/src/hidapi/hidapi/hidapi.h
+++ b/src/hidapi/hidapi/hidapi.h
@@ -29,7 +29,7 @@
 
 #include <wchar.h>
 
-#if defined(_WIN32) && !defined(NAMESPACE)
+#if defined(_WIN32) && !defined(NAMESPACE) && (0) /* SDL: don't export hidapi syms */
       #define HID_API_EXPORT __declspec(dllexport)
       #define HID_API_CALL
 #else