mdbx: add __printf_args into defs.h

Change-Id: I0e6da5115bc427d04eb3ab59184152275c2a7cae
This commit is contained in:
Leo Yuriev
2018-07-28 17:57:54 +03:00
parent 32c63077a4
commit dbf66ec0bb
2 changed files with 7 additions and 9 deletions

View File

@@ -327,6 +327,13 @@
# define mdbx_func_ "<mdbx_unknown>"
#endif
#if defined(__GNUC__) || __has_attribute(format)
#define __printf_args(format_index, first_arg) \
__attribute__((format(printf, format_index, first_arg)))
#else
#define __printf_args(format_index, first_arg)
#endif
/*----------------------------------------------------------------------------*/
#if defined(USE_VALGRIND)