50-operations.patch 796 B

1234567891011121314151617181920212223242526
  1. diff --git a/src/filesystem/path_parser.h b/src/filesystem/path_parser.h
  2. index c6e63e8..630391f 100644
  3. --- a/src/filesystem/path_parser.h
  4. +++ b/src/filesystem/path_parser.h
  5. @@ -337,15 +337,19 @@ private:
  6. return consumeNSeparators(consumeName(P, End), End, 2);
  7. }
  8. - PosPtr consumeRootName(PosPtr P, PosPtr End) const noexcept {
  9. #if defined(_LIBCPP_WIN32API)
  10. + PosPtr consumeRootName(PosPtr P, PosPtr End) const noexcept {
  11. if (PosPtr Ret = consumeDriveLetter(P, End))
  12. return Ret;
  13. if (PosPtr Ret = consumeNetworkRoot(P, End))
  14. return Ret;
  15. -#endif
  16. return nullptr;
  17. }
  18. +#else
  19. + PosPtr consumeRootName(PosPtr /*P*/, PosPtr /*End*/) const noexcept {
  20. + return nullptr;
  21. + }
  22. +#endif
  23. };
  24. inline string_view_pair separate_filename(string_view_t const& s) {