build: Prepare config.h for inclusion in examples/tests
authorChris Dickens <christopher.a.dickens@gmail.com>
Fri, 27 Nov 2020 23:22:29 +0000 (15:22 -0800)
committerChris Dickens <christopher.a.dickens@gmail.com>
Fri, 27 Nov 2020 23:22:29 +0000 (15:22 -0800)
commitf2e551a5ff03325505bf90796887d4fc0093a99b
treef066080798a294e177c7b9063971c54e83f75675
parent9d23ed25b44ae351eaf839805722d6796f9b018a
build: Prepare config.h for inclusion in examples/tests

There are certain games played in the examples and tests source to
account for differences in build environments and target platforms. This
can be simplified by including config.h and using the definitions there.

To that end, move the printf function attribute definition from
libusbi.h to config.h and leverage it where it is used in the examples
and tests.

Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
44 files changed:
Xcode/config.h
android/config.h
configure.ac
examples/ezusb.c
examples/ezusb.h
examples/fxload.c
libusb/libusbi.h
libusb/version_nano.h
msvc/config.h
msvc/fxload_2013.vcxproj
msvc/fxload_2013.vcxproj.filters
msvc/fxload_2015.vcxproj
msvc/fxload_2015.vcxproj.filters
msvc/fxload_2017.vcxproj
msvc/fxload_2017.vcxproj.filters
msvc/fxload_2019.vcxproj
msvc/fxload_2019.vcxproj.filters
msvc/hotplugtest_2013.vcxproj
msvc/hotplugtest_2015.vcxproj
msvc/hotplugtest_2017.vcxproj
msvc/hotplugtest_2019.vcxproj
msvc/listdevs_2013.vcxproj
msvc/listdevs_2015.vcxproj
msvc/listdevs_2017.vcxproj
msvc/listdevs_2019.vcxproj
msvc/stress_2013.vcxproj
msvc/stress_2013.vcxproj.filters
msvc/stress_2015.vcxproj
msvc/stress_2015.vcxproj.filters
msvc/stress_2017.vcxproj
msvc/stress_2017.vcxproj.filters
msvc/stress_2019.vcxproj
msvc/stress_2019.vcxproj.filters
msvc/testlibusb_2013.vcxproj
msvc/testlibusb_2015.vcxproj
msvc/testlibusb_2017.vcxproj
msvc/testlibusb_2019.vcxproj
msvc/xusb_2013.vcxproj
msvc/xusb_2015.vcxproj
msvc/xusb_2017.vcxproj
msvc/xusb_2019.vcxproj
tests/libusb_testlib.h
tests/stress.c
tests/testlib.c