Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added missing includes (for uintmax_t, ofstream) #70

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Teeed
Copy link

@Teeed Teeed commented Feb 11, 2024

Platform:
arch linux (up-to-date @ 12.02.2024), gcc version 13.2.1 20230801 (GCC)

Fixes following compilation errors:

In file included from src/impl/autotierfs/conflicts.cpp:20:
src/incl/alert.hpp:96:34: error: ‘uintmax_t’ has not been declared
   96 |         std::string format_bytes(uintmax_t bytes) const;
      |                                  ^~~~~~~~~
src/incl/alert.hpp:107:29: error: ‘uintmax_t’ has not been declared
  107 |         double format_bytes(uintmax_t bytes, std::string &unit) const;
      |                             ^~~~~~~~~

and

src/impl/autotierfs/config.cpp:228:25: error: variable ‘std::ofstream f’ has initializer but incomplete type
  228 |         std::ofstream f(config_path.string());

@Teeed Teeed changed the title Added missing includes (fot uintmax_t Added missing includes (fot uintmax_t, ofstream) Feb 11, 2024
@Teeed Teeed changed the title Added missing includes (fot uintmax_t, ofstream) Added missing includes (for uintmax_t, ofstream) Feb 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant