summaryrefslogtreecommitdiff
path: root/src/third_party/format.cpp
diff options
context:
space:
mode:
authorJoel Rosdahl <joel@rosdahl.net>2020-04-14 21:05:39 +0200
committerJoel Rosdahl <joel@rosdahl.net>2020-04-14 21:05:39 +0200
commitaa109f272adcc3589325ca9ede21333035927b41 (patch)
tree167c770f472ec8c94e63551ef008b4cba7b9d363 /src/third_party/format.cpp
parenta76e216c6ce33fc3dfc40238e310d3eae0a3cb71 (diff)
downloadccache-aa109f272adcc3589325ca9ede21333035927b41.tar.gz
Upgrade to fmt 6.2.0
Diffstat (limited to 'src/third_party/format.cpp')
-rw-r--r--src/third_party/format.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/third_party/format.cpp b/src/third_party/format.cpp
index 44ba77f0..9a9abf8d 100644
--- a/src/third_party/format.cpp
+++ b/src/third_party/format.cpp
@@ -19,7 +19,7 @@ int format_float(char* buf, std::size_t size, const char* format, int precision,
"fuzz mode - avoid large allocation inside snprintf");
#endif
// Suppress the warning about nonliteral format string.
- auto snprintf_ptr = FMT_SNPRINTF;
+ int (*snprintf_ptr)(char*, size_t, const char*, ...) = FMT_SNPRINTF;
return precision < 0 ? snprintf_ptr(buf, size, format, value)
: snprintf_ptr(buf, size, format, precision, value);
}
@@ -121,7 +121,7 @@ template FMT_API char* internal::sprintf_format(long double,
internal::buffer<char>&,
sprintf_specs);
-template struct FMT_API internal::basic_data<void>;
+template struct FMT_INSTANTIATION_DEF_API internal::basic_data<void>;
// Workaround a bug in MSVC2013 that prevents instantiation of format_float.
int (*instantiate_format_float)(double, int, internal::float_specs,