summaryrefslogtreecommitdiff
path: root/util/cbfstool/flashmap/kv_pair.h
diff options
context:
space:
mode:
Diffstat (limited to 'util/cbfstool/flashmap/kv_pair.h')
-rw-r--r--util/cbfstool/flashmap/kv_pair.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/util/cbfstool/flashmap/kv_pair.h b/util/cbfstool/flashmap/kv_pair.h
index 7024dd3061..1185a08d52 100644
--- a/util/cbfstool/flashmap/kv_pair.h
+++ b/util/cbfstool/flashmap/kv_pair.h
@@ -108,7 +108,11 @@ extern struct kv_pair *kv_pair_add_bool(struct kv_pair *kv_list,
*/
extern struct kv_pair *kv_pair_fmt(struct kv_pair *kv_list,
const char *kv_key, const char *format, ...)
+#if defined(_WIN32) || (_WIN64)
+ __attribute__((format(gnu_printf, 3, 4)));
+#else
__attribute__((format(printf, 3, 4)));
+#endif
/*
* kv_pair_free - clean a key=value pair list