build: Fix Android and Xcode compilation errors/warnings
authorChris Dickens <christopher.a.dickens@gmail.com>
Mon, 16 Nov 2020 21:03:52 +0000 (13:03 -0800)
committerChris Dickens <christopher.a.dickens@gmail.com>
Mon, 16 Nov 2020 21:03:52 +0000 (13:03 -0800)
commit9d23ed25b44ae351eaf839805722d6796f9b018a
treee06e1826a0900049d6a346d4679966146b7b67ef
parentf69548c3b3340f3e4d9d6f6192451e533ccb2b70
build: Fix Android and Xcode compilation errors/warnings

Commit f69548c3b3 ("examples: Enable all examples to build on all
platforms") modified dpfp and sam3u_benchmark to be buildable on any
platform, however there were some oversights and regressions introduced
for Android and Xcode.

Update the Android and Xcode build files to account for the removal of
dpfp_threaded.c as well as the inclusion of config.h from examples
and/or tests source.

Additionally switch the threaded version of dpfp to use sem_open()
instead of sem_init() as the latter is in fact deprecated on MacOS.

Closes #808

Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
.gitignore
Xcode/libusb.xcodeproj/project.pbxproj
android/jni/examples.mk
android/jni/libusb.mk
android/jni/tests.mk
examples/dpfp.c
examples/sam3u_benchmark.c
libusb/version_nano.h