mirror of
https://github.com/hyprwm/hyprlock.git
synced 2026-05-04 20:07:59 +02:00
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:
parent
07b5e1b4cd
commit
408ce95dd0
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue