Fix compilation when MISSING_LEAP_SECONDS is set to true

This commit is contained in:
Tim Tavlintsev 2023-03-03 14:00:54 +11:00 committed by Howard Hinnant
parent 15e0c84e42
commit 50acf3ffd8

View File

@ -2820,6 +2820,7 @@ find_read_and_leap_seconds()
}
return leap_seconds;
}
#if !MISSING_LEAP_SECONDS
in.clear();
in.open(get_tz_dir() + std::string(1, folder_delimiter) + "right/UTC",
std::ios_base::binary);
@ -2834,6 +2835,7 @@ find_read_and_leap_seconds()
{
return load_just_leaps(in);
}
#endif
return {};
}