Skip to content

Commit

Permalink
fmt v10.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
yjh-styx committed Jan 5, 2024
1 parent 58d3432 commit dde66bf
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 2 deletions.
5 changes: 5 additions & 0 deletions far/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
--------------------------------------------------------------------------------
yjh 2024-01-05 23:58:39+03:00 - build 6248

1. fmt v10.2.1

--------------------------------------------------------------------------------
zg 2024-01-05 09:36:01+02:00 - build 6247

Expand Down
2 changes: 1 addition & 1 deletion far/thirdparty/fmt/fmt/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include <type_traits>

// The fmt library version in the form major * 10000 + minor * 100 + patch.
#define FMT_VERSION 100200
#define FMT_VERSION 100201

#if defined(__clang__) && !defined(__ibmxl__)
# define FMT_CLANG_VERSION (__clang_major__ * 100 + __clang_minor__)
Expand Down
5 changes: 5 additions & 0 deletions far/thirdparty/fmt/fmt/format-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -1434,6 +1434,7 @@ FMT_FUNC auto vformat(string_view fmt, format_args args) -> std::string {
namespace detail {
#if !defined(_WIN32) || defined(FMT_WINDOWS_NO_WCHAR)
FMT_FUNC auto write_console(int, string_view) -> bool { return false; }
FMT_FUNC auto write_console(std::FILE*, string_view) -> bool { return false; }
#else
using dword = conditional_t<sizeof(long) == 4, unsigned long, unsigned>;
extern "C" __declspec(dllimport) int __stdcall WriteConsoleW( //
Expand All @@ -1444,6 +1445,10 @@ FMT_FUNC bool write_console(int fd, string_view text) {
return WriteConsoleW(reinterpret_cast<void*>(_get_osfhandle(fd)), u16.c_str(),
static_cast<dword>(u16.size()), nullptr, nullptr) != 0;
}

FMT_FUNC auto write_console(std::FILE* f, string_view text) -> bool {
return write_console(_fileno(f), text);
}
#endif

#ifdef _WIN32
Expand Down
1 change: 1 addition & 0 deletions far/thirdparty/fmt/fmt/format.h
Original file line number Diff line number Diff line change
Expand Up @@ -999,6 +999,7 @@ struct is_contiguous<basic_memory_buffer<T, SIZE, Allocator>> : std::true_type {
FMT_END_EXPORT
namespace detail {
FMT_API auto write_console(int fd, string_view text) -> bool;
FMT_API auto write_console(std::FILE* f, string_view text) -> bool;
FMT_API void print(std::FILE*, string_view);
} // namespace detail

Expand Down
2 changes: 1 addition & 1 deletion far/vbuild.m4
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6247
6248

0 comments on commit dde66bf

Please sign in to comment.