Skip to content

Commit

Permalink
Fix build when targetting Android 7 or later (#14)
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 Feb 8, 2022
1 parent c7c6bc0 commit 87927bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hidapi/libusb/hid.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,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 87927bb

Please sign in to comment.