summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libusb/os/windows_usb.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libusb/os/windows_usb.h b/libusb/os/windows_usb.h
index 8d62f9f..80e3dec 100644
--- a/libusb/os/windows_usb.h
+++ b/libusb/os/windows_usb.h
@@ -328,7 +328,8 @@ struct driver_lookup {
* API macros - from libusb-win32 1.x
*/
#define DLL_DECLARE(api, ret, name, args) \
- typedef ret (api * __dll_##name##_t)args; __dll_##name##_t name = NULL
+ typedef ret (api * __dll_##name##_t)args; \
+ static __dll_##name##_t name = NULL
#define DLL_LOAD(dll, name, ret_on_failure) \
do { \