Преглед изворни кода

Add type argument to non-dynamic LOAD_LIBUSB_SYMBOL macro

It should not need a cast.
Anonymous Maarten пре 3 година
родитељ
комит
0785f272fd
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/hidapi/SDL_hidapi.c

+ 1 - 1
src/hidapi/SDL_hidapi.c

@@ -1084,7 +1084,7 @@ int SDL_hid_init(void)
         loaded = SDL_FALSE;                                                                   \
     }
 #else
-#define LOAD_LIBUSB_SYMBOL(func) \
+#define LOAD_LIBUSB_SYMBOL(type, func) \
     libusb_ctx.func = libusb_##func;
 #endif
             LOAD_LIBUSB_SYMBOL(int (LIBUSB_CALL *)(libusb_context **), init)