trivial: Fix a warning when compiling without USB support

This commit is contained in:
Richard Hughes 2021-11-27 18:16:26 +00:00
parent 3291bd40ce
commit 165c0278bb

View File

@ -10,9 +10,9 @@
#ifdef HAVE_GUSB
#include <gusb.h>
#else
#define GUsbContext GObject
#define GUsbDevice GObject
#ifndef __GI_SCANNER__
typedef GObject GUsbContext;
typedef GObject GUsbDevice;
#define G_USB_CHECK_VERSION(a, c, b) 0
#endif
#endif