@@ -20,6 +20,7 @@ use ptr;
20
20
21
21
#[ repr( simd) ]
22
22
#[ repr( C ) ]
23
+ #[ cfg( target_arch = "x86_64" ) ]
23
24
struct u64x2 ( u64 , u64 ) ;
24
25
25
26
pub use self :: FILE_INFO_BY_HANDLE_CLASS :: * ;
@@ -246,17 +247,17 @@ pub const CRYPT_VERIFYCONTEXT: DWORD = 0xF0000000;
246
247
pub const EXCEPTION_CONTINUE_SEARCH : LONG = 0 ;
247
248
pub const EXCEPTION_STACK_OVERFLOW : DWORD = 0xc00000fd ;
248
249
pub const EXCEPTION_MAXIMUM_PARAMETERS : usize = 15 ;
249
- #[ cfg( target_env = "gnu" ) ]
250
+ #[ cfg( all ( target_arch = "x86_64" , target_env = "gnu" ) ) ]
250
251
pub const EXCEPTION_NONCONTINUABLE : DWORD = 0x1 ; // Noncontinuable exception
251
- #[ cfg( target_env = "gnu" ) ]
252
+ #[ cfg( all ( target_arch = "x86_64" , target_env = "gnu" ) ) ]
252
253
pub const EXCEPTION_UNWINDING : DWORD = 0x2 ; // Unwind is in progress
253
- #[ cfg( target_env = "gnu" ) ]
254
+ #[ cfg( all ( target_arch = "x86_64" , target_env = "gnu" ) ) ]
254
255
pub const EXCEPTION_EXIT_UNWIND : DWORD = 0x4 ; // Exit unwind is in progress
255
- #[ cfg( target_env = "gnu" ) ]
256
+ #[ cfg( all ( target_arch = "x86_64" , target_env = "gnu" ) ) ]
256
257
pub const EXCEPTION_TARGET_UNWIND : DWORD = 0x20 ; // Target unwind in progress
257
- #[ cfg( target_env = "gnu" ) ]
258
+ #[ cfg( all ( target_arch = "x86_64" , target_env = "gnu" ) ) ]
258
259
pub const EXCEPTION_COLLIDED_UNWIND : DWORD = 0x40 ; // Collided exception handler call
259
- #[ cfg( target_env = "gnu" ) ]
260
+ #[ cfg( all ( target_arch = "x86_64" , target_env = "gnu" ) ) ]
260
261
pub const EXCEPTION_UNWIND : DWORD = EXCEPTION_UNWINDING |
261
262
EXCEPTION_EXIT_UNWIND |
262
263
EXCEPTION_TARGET_UNWIND |
@@ -774,19 +775,19 @@ pub struct in6_addr {
774
775
pub s6_addr : [ u8 ; 16 ] ,
775
776
}
776
777
777
- #[ cfg( target_env = "gnu" ) ]
778
+ #[ cfg( all ( target_arch = "x86_64" , target_env = "gnu" ) ) ]
778
779
pub enum UNWIND_HISTORY_TABLE { }
779
780
780
781
#[ repr( C ) ]
781
- #[ cfg( target_env = "gnu" ) ]
782
+ #[ cfg( all ( target_arch = "x86_64" , target_env = "gnu" ) ) ]
782
783
pub struct RUNTIME_FUNCTION {
783
784
pub BeginAddress : DWORD ,
784
785
pub EndAddress : DWORD ,
785
786
pub UnwindData : DWORD ,
786
787
}
787
788
788
789
#[ repr( C ) ]
789
- #[ cfg( target_env = "gnu" ) ]
790
+ #[ cfg( all ( target_arch = "x86_64" , target_env = "gnu" ) ) ]
790
791
pub struct DISPATCHER_CONTEXT {
791
792
pub ControlPc : LPVOID ,
792
793
pub ImageBase : LPVOID ,
@@ -1089,7 +1090,7 @@ extern "system" {
1089
1090
dwExceptionFlags : DWORD ,
1090
1091
nNumberOfArguments : DWORD ,
1091
1092
lpArguments : * const ULONG_PTR ) ;
1092
- #[ cfg( target_env = "gnu" ) ]
1093
+ #[ cfg( all ( target_arch = "x86_64" , target_env = "gnu" ) ) ]
1093
1094
pub fn RtlUnwindEx ( TargetFrame : LPVOID ,
1094
1095
TargetIp : LPVOID ,
1095
1096
ExceptionRecord : * const EXCEPTION_RECORD ,
0 commit comments