jv.h: define empty JV_{,V}PRINTF_LIKE macros if __GNUC__ is not defined

Fixes #3159

Reported-by: Hsiang-Ying Fu
This commit is contained in:
Emanuele Torre authored and GitHub committed 2024-08-13 12:20:02 +02:00
1 parent c1d885b024
commit 137018d2ae
1 file changed
+3
+3
View File
@@ -113,6 +113,9 @@ jv jv_array_indexes(jv, jv);
__attribute__ ((__format__( __printf__, fmt_arg_num, args_num)))
#define JV_VPRINTF_LIKE(fmt_arg_num) \
__attribute__ ((__format__( __printf__, fmt_arg_num, 0)))
#else
#define JV_PRINTF_LIKE(fmt_arg_num, args_num)
#define JV_VPRINTF_LIKE(fmt_arg_num)
#endif