File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -302,7 +302,7 @@ impl Entry {
302302
303303    /// Returns the bare file name of this directory entry without any other leading path component. 
304304///  
305- #[ cfg( target_arch  = "x86_64"  ) ]  //this specific change only tested on very limited systems, I'm unaware of any other systems that have this issue 
305+   #[ cfg( all ( target_os  = "linux"  ,  target_arch =  "x86_64" ) ) ]  
306306    ///PLEASE REMOVE THESE COMMENTS (OBVIOUSLY WHEN DONE)) 
307307/// This utilises a constant-time constant function strlen implementation that's faster than `libc::strlen`` (std library internal implementation) 
308308/// The function used is described at the bottom of the file. Benchmarks at  
@@ -317,7 +317,7 @@ impl Entry {
317317    } 
318318} 
319319
320-     #[ cfg( not( target_arch = "x86_64" ) ) ]  
320+     #[ cfg( not( all ( target_os =  "linux" ,   target_arch = "x86_64" ) ) ) ]  
321321    pub  fn  file_name ( & self )  -> & ffi:: CStr  { 
322322        unsafe  {  ffi:: CStr :: from_ptr ( self . 0 . d_name . as_ptr ( ) )  } 
323323    } 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments