File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -785,7 +785,7 @@ fn test_windows(target: &str) {
785785 }
786786 cfg. define ( "_WIN32_WINNT" , Some ( "0x8000" ) ) ;
787787
788- if gnu && i686 {
788+ let redirect_time_t = if gnu && i686 {
789789 if let Ok ( v) = env:: var ( "CARGO_CFG_LIBC_UNSTABLE_GNU_TIME_BITS" ) {
790790 assert_matches ! (
791791 v. as_str( ) ,
@@ -795,9 +795,16 @@ fn test_windows(target: &str) {
795795
796796 if v == "64" {
797797 cfg. cfg ( "gnu_time_bits64" , None ) ;
798+ true
799+ } else {
800+ false
798801 }
802+ } else {
803+ false
799804 }
800- }
805+ } else {
806+ false
807+ } ;
801808
802809 headers ! (
803810 cfg,
@@ -856,7 +863,7 @@ fn test_windows(target: &str) {
856863 "SSIZE_T" if !gnu => true ,
857864 "ssize_t" if !gnu => true ,
858865 // FIXME(windows): The size and alignment of this type are incorrect
859- "time_t" if gnu && i686 => true ,
866+ "time_t" if gnu && i686 && !redirect_time_t => true ,
860867 _ => false ,
861868 } ) ;
862869
You can’t perform that action at this time.
0 commit comments