Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/videolan/dav1d.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2019-01-26 06:41:35 +0300
committerJames Almer <jamrial@gmail.com>2019-01-28 18:16:54 +0300
commitc98bbeb3cf7ec6bd2545fdb8704dae87fe7cc117 (patch)
tree11593a76dff62fd870f78ebf772a67b84145cf73 /include/common
parent0749f4b0929bf9e4f0afa5bc96a12073b55a2408 (diff)
add a logging callback mechanism
Diffstat (limited to 'include/common')
-rw-r--r--include/common/attributes.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/common/attributes.h b/include/common/attributes.h
index 25e7b7e..e3f538c 100644
--- a/include/common/attributes.h
+++ b/include/common/attributes.h
@@ -34,8 +34,10 @@
#ifdef __GNUC__
#define ATTR_ALIAS __attribute__((may_alias))
+#define ATTR_FORMAT_PRINTF(fmt, attr) __attribute__((__format__(__printf__, fmt, attr)));
#else
#define ATTR_ALIAS
+#define ATTR_FORMAT_PRINTF(fmt, attr)
#endif
#if ARCH_X86_64