define LIBUSB_CALL if not available with old libusb

Signed-off-by: Steve Markgraf <>
This commit is contained in:
Dimitri Stolnikov 2012-04-03 19:40:50 +02:00 committed by Steve Markgraf
parent b38414c15a
commit 9773ac0b83
1 changed files with 10 additions and 0 deletions

View File

@ -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.
#include <rtl-sdr.h>
#include "tuner_e4000.h"
#include "tuner_fc0012.h"