Skip to content

Commit

Permalink
Check for __GNUC__ at least 5 for codecvt dependency.
Browse files Browse the repository at this point in the history
  • Loading branch information
gijsbers committed Feb 22, 2025
1 parent f3b9c30 commit e162444
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fdomenu.cc
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#include <utility> // For std::move
#include <vector>

#if __cplusplus > 201103L
#if __cplusplus >= 201103L && (!defined(__GNUC__) || (__GNUC__ >= 5))
#include <codecvt>
#endif

Expand Down Expand Up @@ -554,7 +554,7 @@ struct AppEntry {
}
}
if (prog_name_cut > 0 && ret.size() > prog_name_cut) {
#if __cplusplus > 201103L
#if __cplusplus >= 201103L && (!defined(__GNUC__) || (__GNUC__ >= 5))
auto u16_conv =
wstring_convert<codecvt_utf8_utf16<char16_t>, char16_t>{}
.from_bytes(ret);
Expand Down

0 comments on commit e162444

Please sign in to comment.