mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-12 16:23:01 +00:00
Use gnu_printf format annotation under MingW with GCC only
Fixes https://github.com/harfbuzz/harfbuzz/issues/5106
This commit is contained in:
parent
462a54895b
commit
123a0d68a1
1 changed files with 1 additions and 1 deletions
|
@ -282,7 +282,7 @@ extern "C" void hb_free_impl(void *ptr);
|
|||
#define __attribute__(x)
|
||||
#endif
|
||||
|
||||
#if defined(__MINGW32__) && (__GNUC__ >= 3)
|
||||
#if defined(__MINGW32__) && (__GNUC__ >= 3) && !defined(__clang__)
|
||||
#define HB_PRINTF_FUNC(format_idx, arg_idx) __attribute__((__format__ (gnu_printf, format_idx, arg_idx)))
|
||||
#elif defined(__GNUC__) && (__GNUC__ >= 3)
|
||||
#define HB_PRINTF_FUNC(format_idx, arg_idx) __attribute__((__format__ (__printf__, format_idx, arg_idx)))
|
||||
|
|
Loading…
Add table
Reference in a new issue