Skip to content

Commit

Permalink
Fix includes
Browse files Browse the repository at this point in the history
std::numeric_limits was missing on gentoo linux with gcc 12.1.1_p2022062 and glibc 2.35-r8
  • Loading branch information
Alice authored and thepowersgang committed Aug 7, 2022
1 parent 42b5486 commit 586c301
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ast/dump.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include <main_bindings.hpp>
#include <hir/hir.hpp> // ABI_RUST - TODO: Move elsewhere?
#include <fstream>
#include <limits> // std::numeric_limits

#include <cpp_unpack.h>

Expand Down Expand Up @@ -726,7 +727,7 @@ void RustPrinter::handle_module(const AST::Module& mod)
print_attrs(item.attrs);
m_os << indent() << "extern \"" << e.abi() << "\" {}\n";
}

for( const auto& ip : mod.m_items )
{
const auto& item = *ip;
Expand Down

0 comments on commit 586c301

Please sign in to comment.