summaryrefslogtreecommitdiffstats
path: root/contrib/libs/jwt-cpp/patches/02-fix-build-when-__STDC_FORMAT_MACROS-prdefined.patch
blob: 07ecbaf3c3b754010340bf99d5eece1875c1f039 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
--- a/include/picojson/picojson.h
+++ b/include/picojson/picojson.h
@@ -75,7 +75,9 @@
 
 // experimental support for int64_t (see README.mkdn for detail)
 #ifdef PICOJSON_USE_INT64
+#ifndef __STDC_FORMAT_MACROS
 #define __STDC_FORMAT_MACROS
+#endif
 #include <cerrno>
 #if __cplusplus >= 201103L
 #include <cinttypes>