Skip to content

v11.0+ fails to build on Amiga and Xbox #4054

@glebm

Description

@glebm

fmt from v11.0.0 onwards (6b68dff) no longer builds for Amiga and Xbox, with the same error on both:

fmt/format-inl.h:1638:5: error: 'flockfile' was not declared in this scope
 1638 |     flockfile(f);
      |     ^~~~~~~~~
fmt/format-inl.h: In destructor 'fmt::v11::detail::file_print_buffer::~file_print_buffer()':
fmt/format-inl.h:1646:5: error: 'funlockfile' was not declared in this scope; did you mean 'fallback_file'?
 1646 |     funlockfile(file_);
      |     ^~~~~~~~~~~
      |     fallback_file

Would it be possible to add a define to avoid using lock/unlock/getc_unlocked, so that it can be built on platforms that do not support these functions?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions