diff --git a/amalgamate.py b/amalgamate.py index 7dad719..710744b 100644 --- a/amalgamate.py +++ b/amalgamate.py @@ -161,7 +161,7 @@ def merge_sources(*, source_dir: Path, covered_headers: Set[Path]): return output def do_polyfill(content): - return content.replace('', '') \ + return content.replace('#include ', '#if __has_include("expected.hpp")\n#include \n#else\n#include \n#endif\n') \ .replace('std::expected', 'tl::expected') \ .replace('std::unexpected', 'tl::unexpected')