mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-23 17:35:34 +00:00
hidapi: Wrap CopyHIDDeviceInfo in define checks.
The purpose of this is to silence a 'defined but not used' warning.
This commit is contained in:
parent
5bc2933425
commit
a40405d724
|
@ -951,6 +951,7 @@ DeleteHIDDeviceWrapper(SDL_hid_device *device)
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !SDL_HIDAPI_DISABLED
|
#if !SDL_HIDAPI_DISABLED
|
||||||
|
#if HAVE_PLATFORM_BACKEND || HAVE_DRIVER_BACKEND || defined(SDL_LIBUSB_DYNAMIC)
|
||||||
|
|
||||||
#define COPY_IF_EXISTS(var) \
|
#define COPY_IF_EXISTS(var) \
|
||||||
if (pSrc->var != NULL) { \
|
if (pSrc->var != NULL) { \
|
||||||
|
@ -987,6 +988,7 @@ CopyHIDDeviceInfo(struct SDL_hid_device_info *pSrc, struct SDL_hid_device_info *
|
||||||
#undef COPY_IF_EXISTS
|
#undef COPY_IF_EXISTS
|
||||||
#undef WCOPY_IF_EXISTS
|
#undef WCOPY_IF_EXISTS
|
||||||
|
|
||||||
|
#endif /* HAVE_PLATFORM_BACKEND || HAVE_DRIVER_BACKEND || SDL_LIBUSB_DYNAMIC */
|
||||||
#endif /* !SDL_HIDAPI_DISABLED */
|
#endif /* !SDL_HIDAPI_DISABLED */
|
||||||
|
|
||||||
static int SDL_hidapi_refcount = 0;
|
static int SDL_hidapi_refcount = 0;
|
||||||
|
|
Loading…
Reference in a new issue