Fix build when targetting Android 7 or later

Support for pthread_barrier was introduced in Android 7, so trying to
build a custom implementation of that clashes with the system headers.
This commit is contained in:
Fredrik Fornwall
2019-12-12 01:54:06 +01:00
committed by Ihor Dutchak
parent 51bdec7844
commit 90ddfc61b7

View File

@@ -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