mirror of
https://github.com/HowardHinnant/date.git
synced 2025-01-13 17:34:45 +08:00
Fix compilation when MISSING_LEAP_SECONDS is set to true
This commit is contained in:
parent
15e0c84e42
commit
50acf3ffd8
@ -2820,6 +2820,7 @@ find_read_and_leap_seconds()
|
|||||||
}
|
}
|
||||||
return leap_seconds;
|
return leap_seconds;
|
||||||
}
|
}
|
||||||
|
#if !MISSING_LEAP_SECONDS
|
||||||
in.clear();
|
in.clear();
|
||||||
in.open(get_tz_dir() + std::string(1, folder_delimiter) + "right/UTC",
|
in.open(get_tz_dir() + std::string(1, folder_delimiter) + "right/UTC",
|
||||||
std::ios_base::binary);
|
std::ios_base::binary);
|
||||||
@ -2834,6 +2835,7 @@ find_read_and_leap_seconds()
|
|||||||
{
|
{
|
||||||
return load_just_leaps(in);
|
return load_just_leaps(in);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user