diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/rtl-sdr.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/rtl-sdr.c b/src/rtl-sdr.c index 2d03b97..0b71071 100644 --- a/src/rtl-sdr.c +++ b/src/rtl-sdr.c @@ -29,6 +29,16 @@ #include <libusb.h> +/* + * All libusb callback functions should be marked with the LIBUSB_CALL macro + * to ensure that they are compiled with the same calling convention as libusb. + * + * If the macro isn't available in older libusb versions, we simply define it. + */ +#ifndef LIBUSB_CALL +#define LIBUSB_CALL +#endif + #include <rtl-sdr.h> #include "tuner_e4000.h" #include "tuner_fc0012.h" |
