mirror of
https://github.com/rtlsdrblog/rtl-sdr-blog.git
synced 2025-02-28 18:04:09 +01:00
define LIBUSB_CALL if not available with old libusb
Signed-off-by: Steve Markgraf <steve@steve-m.de>
This commit is contained in:
parent
b38414c15a
commit
9773ac0b83
@ -29,6 +29,16 @@
|
|||||||
|
|
||||||
#include <libusb.h>
|
#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 <rtl-sdr.h>
|
||||||
#include "tuner_e4000.h"
|
#include "tuner_e4000.h"
|
||||||
#include "tuner_fc0012.h"
|
#include "tuner_fc0012.h"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user