diff options
author | Chris Dickens <christopher.a.dickens@gmail.com> | 2020-11-27 15:22:29 -0800 |
---|---|---|
committer | Chris Dickens <christopher.a.dickens@gmail.com> | 2020-11-27 15:22:29 -0800 |
commit | f2e551a5ff03325505bf90796887d4fc0093a99b (patch) | |
tree | f066080798a294e177c7b9063971c54e83f75675 /android | |
parent | 9d23ed25b44ae351eaf839805722d6796f9b018a (diff) | |
download | libusb-f2e551a5ff03325505bf90796887d4fc0093a99b.tar.gz |
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>
Diffstat (limited to 'android')
-rw-r--r-- | android/config.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/android/config.h b/android/config.h index 12172f6..1092f65 100644 --- a/android/config.h +++ b/android/config.h @@ -44,6 +44,10 @@ /* Define to 1 if compiling for a POSIX platform. */ #define PLATFORM_POSIX 1 +/* Define to the attribute for enabling parameter checks on printf-like + functions. */ +#define PRINTF_FORMAT(a, b) __attribute__ ((__format__ (__printf__, a, b))) + /* Define to 1 to output logging messages to the systemwide log. */ #define USE_SYSTEM_LOGGING_FACILITY 1 |