mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-19 13:35:28 +00:00
d7d0f142d8
We now support the most recent released version of `fmt` available (at
the time
of committing).
As we no longer patch `fmt` to get it to work within `pyrogenesis`, this
commit
also mostly removes its source from our code-tree (some headers are
retained for
Windows builds).
If you are a user of...
Linux/BSD: You will now need to have `fmt` installed from your
distribution's
package repository. The minimum supported version of `fmt` is
`4.0`.
OSX: The source is acquired and compiled (in `build-osx-libs.sh`),
then included and linked automatically.
Windows: The relevant header files are retained and, along with a
pre-built
library, are the only things still bundled.
Accepted by: wraitii
Tested by:
* Freagarach (Lubuntu 18.04, `fmt 4.0.0`)
* Krinkle (MacOS 10.14, `fmt 6.1.2`)
* nephele (Alpine Linux)
* wraitii (MacOS 10.14)
* Nescio (Fedora 33, `fmt 7.0.3`)
Windows library files built by: Stan
Fixes: #3190
Differential Revision: https://code.wildfiregames.com/D2689
This was SVN commit r24267.
14 lines
412 B
Diff
14 lines
412 B
Diff
diff --git a/include/fmt/os.h b/include/fmt/os.h
|
|
index 88151006..11c3b2cc 100644
|
|
--- a/include/fmt/os.h
|
|
+++ b/include/fmt/os.h
|
|
@@ -375,7 +375,7 @@ struct ostream_params {
|
|
};
|
|
} // namespace detail
|
|
|
|
-static constexpr detail::buffer_size buffer_size;
|
|
+static constexpr detail::buffer_size buffer_size{};
|
|
|
|
// A fast output stream which is not thread-safe.
|
|
class ostream final : private detail::buffer<char> {
|