Commit aeb27b2
committed
fix: fix differing bitwidth routines in win x86 gnu
Until [rust-lang#5032], whenever `libc` was running under Windows x86 with GNU,
the default bit-width of `time_t` values was 32-bits. This doesn't quite
align with the defaults in MSVC and `mingw`, but that's been addressed in
that PR.
This PR is a quick patch for stable, as the changes in [rust-lang#5032] are not
backwards-compatible. It separates the routines that under Windows use
`time_t` values and changes their link-time symbols to the 32-bit
variants exposed in both MSVC and `mingw`, for the affected target
platform/environment.
[rust-lang#5032]: rust-lang#50321 parent f3417ae commit aeb27b2
File tree
3 files changed
+88
-8
lines changed- .github/workflows
- libc-test/tests
- src/windows
3 files changed
+88
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
390 | 390 | | |
391 | 391 | | |
392 | 392 | | |
393 | | - | |
394 | | - | |
395 | | - | |
396 | | - | |
397 | 393 | | |
398 | 394 | | |
399 | 395 | | |
| |||
407 | 403 | | |
408 | 404 | | |
409 | 405 | | |
410 | | - | |
411 | | - | |
412 | | - | |
413 | | - | |
414 | 406 | | |
415 | 407 | | |
416 | 408 | | |
| |||
549 | 541 | | |
550 | 542 | | |
551 | 543 | | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
552 | 571 | | |
553 | 572 | | |
554 | 573 | | |
| |||
0 commit comments