widgets: chase libc++ < 19 compat after 2c5ae4d661 (#659)

src/renderer/widgets/IWidget.cpp:123:11: error: no type named 'time_zone' in namespace 'std::__1::chrono'; did you mean 'date::time_zone'?
  123 |     const std::chrono::time_zone* pCurrentTz = nullptr;
      |           ^~~~~~~~~~~~~~~~~~~~~~
      |           date::time_zone
/usr/include/date/tz.h:785:7: note: 'date::time_zone' declared here
  785 | class time_zone
      |       ^
src/renderer/widgets/IWidget.cpp:127:39: error: no member named 'locate_zone' in namespace 'std::__1::chrono'
  127 |             pCurrentTz = std::chrono::locate_zone(name);
      |                          ~~~~~~~~~~~~~^
This commit is contained in:
Jan Beich 2025-01-24 16:31:43 +00:00 committed by GitHub
parent 07b5e1b4cd
commit 408ce95dd0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -16,6 +16,8 @@ using namespace Hyprutils::String;
namespace std {
namespace chrono {
using date::current_zone;
using date::locate_zone;
using date::time_zone;
}
}
#endif