Skip to content

Commit 87927bb

Browse files
authored
Fix build when targetting Android 7 or later (#14)
Support for pthread_barrier was introduced in Android 7, so trying to build a custom implementation of that clashes with the system headers.
1 parent c7c6bc0 commit 87927bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hidapi/libusb/hid.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949

5050
#include "hidapi.h"
5151

52-
#ifdef __ANDROID__
52+
#if defined(__ANDROID__) && __ANDROID_API__ < __ANDROID_API_N__
5353

5454
/* Barrier implementation because Android/Bionic don't have pthread_barrier.
5555
This implementation came from Brent Priddy and was posted on

0 commit comments

Comments
 (0)