Skip to content

Commit 6aa0d45

Browse files
committed
Fix headers for compilation on macos
1 parent 70cafcd commit 6aa0d45

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

libpinedio-usb.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@ extern "C" {
1010

1111
#include <stdint.h>
1212
#include <stdbool.h>
13-
#include <libusb-1.0/libusb.h>
13+
#ifdef __APPLE__
14+
#include <libusb/libusb.h>
15+
#else
16+
#include <libusb-1.0/libusb.h>
17+
#endif
1418
#include <pthread.h>
1519

1620
#define USB_IN_TRANSFERS 32

0 commit comments

Comments
 (0)