File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -26,3 +26,4 @@ byond-515-1621 = [
2626    " byondapi-sys/byond-515-1621"  ,
2727]
2828byond-516-1651  = [" byondapi-sys/byond-516-1651"  ]
29+ opendream  = [" byondapi-sys/opendream"  ]
Original file line number Diff line number Diff line change @@ -27,3 +27,4 @@ doxygen-rs = "0.4"
2727default  = [" byond-516-1651"  ]
2828byond-515-1621  = []
2929byond-516-1651  = []
30+ opendream  = []
Original file line number Diff line number Diff line change 77) ] 
88use  std:: ops:: Deref ; 
99
10- #[ cfg( not( target_pointer_width = "32" ) ) ]  
10+ #[ cfg( all ( not( target_pointer_width = "32" ) ,  not ( feature =  "opendream" ) ) ) ]  
1111compile_error ! ( "BYOND API only functions with 32-bit targets" ) ; 
1212
13- #[ cfg( not( target_arch = "x86" ) ) ]  
13+ #[ cfg( all ( not( target_arch = "x86" ) ,  not ( feature =  "opendream" ) ) ) ]  
1414compile_error ! ( "BYOND API only functions on x86 targets" ) ; 
1515
16- #[ cfg( not( any( target_os = "linux" ,  target_os = "windows" ) ) ) ]  
16+ #[ cfg( all(  
17+     not( any( target_os = "linux" ,  target_os = "windows" ) ) ,  
18+     not( feature = "opendream" )  
19+ ) ) ] 
1720compile_error ! ( "BYOND API only supports Windows and Linux" ) ; 
1821
1922// Include byondapi-c bindings (generated by build.rs) 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments