Skip to content

Commit

Permalink
Lowercase lib name in Windows link attribute (#355)
Browse files Browse the repository at this point in the history
For compatibility with cross-compiling for Windows in case-sensitive
environments.
  • Loading branch information
Skirmisher committed Oct 21, 2021
1 parent a63b31d commit a28507f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utc_offset.rs
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ fn local_offset_at(datetime: OffsetDateTime) -> Option<UtcOffset> {
wMilliseconds: u16,
}

#[link(name = "Kernel32")]
#[link(name = "kernel32")]
extern "system" {
// https://docs.microsoft.com/en-us/windows/win32/api/timezoneapi/nf-timezoneapi-systemtimetofiletime
fn SystemTimeToFileTime(
Expand Down

0 comments on commit a28507f

Please sign in to comment.