Skip to content

Commit

Permalink
Fix build when targetting Android 7 or later
Browse files Browse the repository at this point in the history
Support for pthread_barrier was introduced in Android 7, so trying to
build a custom implementation of that clashes with the system headers.
  • Loading branch information
fornwall authored and Youw committed Jan 22, 2020
1 parent 51bdec7 commit 90ddfc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libusb/hid.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@

#include "hidapi.h"

#ifdef __ANDROID__
#if defined(__ANDROID__) && __ANDROID_API__ < __ANDROID_API_N__

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

0 comments on commit 90ddfc6

Please sign in to comment.