diff --git a/source/third_party/cppformat/format.cpp b/source/third_party/cppformat/format.cpp
index acd70b2..4dd34a5 100644
a
|
b
|
|
1 | 1 | /* |
| 2 | * Slightly modified version of cppformat, by Wildfire Games, for 0 A.D. |
| 3 | * Based on cppformat v2.1.0 from https://github.com/cppformat/cppformat |
| 4 | */ |
| 5 | |
| 6 | /* |
2 | 7 | Formatting library for C++ |
3 | 8 | |
4 | 9 | Copyright (c) 2012 - 2015, Victor Zverovich |
… |
… |
|
25 | 30 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | 31 | */ |
27 | 32 | |
| 33 | #include "precompiled.h" |
| 34 | |
28 | 35 | #include "format.h" |
29 | 36 | |
30 | 37 | #include <string.h> |
… |
… |
class ArgConverter : public fmt::internal::ArgVisitor<ArgConverter<T>, void> {
|
360 | 367 | } |
361 | 368 | |
362 | 369 | template <typename U> |
| 370 | #ifdef _MSC_VER |
| 371 | __pragma(runtime_checks("c", off)) |
| 372 | #endif |
363 | 373 | void visit_any_int(U value) { |
364 | 374 | bool is_signed = type_ == 'd' || type_ == 'i'; |
365 | 375 | using fmt::internal::Arg; |
… |
… |
class ArgConverter : public fmt::internal::ArgVisitor<ArgConverter<T>, void> {
|
385 | 395 | } |
386 | 396 | } |
387 | 397 | } |
| 398 | #ifdef _MSC_VER |
| 399 | __pragma(runtime_checks("c", restore)) |
| 400 | #endif |
388 | 401 | }; |
389 | 402 | |
390 | 403 | // Converts an integer argument to char for printf. |
diff --git a/source/third_party/cppformat/format.h b/source/third_party/cppformat/format.h
index 568123d..7e1f8a7 100644
a
|
b
|
|
1 | 1 | /* |
| 2 | * Slightly modified version of cppformat, by Wildfire Games, for 0 A.D. |
| 3 | * Based on cppformat v2.1.0 from https://github.com/cppformat/cppformat |
| 4 | */ |
| 5 | |
| 6 | /* |
2 | 7 | Formatting library for C++ |
3 | 8 | |
4 | 9 | Copyright (c) 2012 - 2015, Victor Zverovich |
… |
… |
inline DummyInt signbit(...) { return DummyInt(); }
|
235 | 240 | inline DummyInt _ecvt_s(...) { return DummyInt(); } |
236 | 241 | inline DummyInt isinf(...) { return DummyInt(); } |
237 | 242 | inline DummyInt _finite(...) { return DummyInt(); } |
238 | | inline DummyInt isnan(...) { return DummyInt(); } |
| 243 | //inline DummyInt isnan(...) { return DummyInt(); } |
239 | 244 | inline DummyInt _isnan(...) { return DummyInt(); } |
240 | 245 | |
241 | 246 | // A helper function to suppress bogus "conditional expression is constant" |