File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -14,5 +14,7 @@ typedef struct FFHostResult
1414} FFHostResult ;
1515
1616const  char *  ffHostGetMacProductNameWithHwModel (const  FFstrbuf *  hwModel );
17+ #ifdef  __x86_64__ 
1718bool  ffHostDetectMac (FFHostResult *  host );
19+ #endif 
1820const  char *  ffDetectHost (FFHostResult *  host );
Original file line number Diff line number Diff line change @@ -174,9 +174,9 @@ const char* ffHostGetMacProductNameWithHwModel(const FFstrbuf* hwModel)
174174    return  NULL ;
175175}
176176
177+ #ifdef  __x86_64__ 
177178bool  ffHostDetectMac (FFHostResult *  host )
178179{
179-     #ifdef  __x86_64__ 
180180    if  (ffStrbufEqualS (& host -> family , "Mac" ) &&  ffStrbufEqualS (& host -> vendor , "Apple Inc." ))
181181    {
182182        const  char *  productName  =  ffHostGetMacProductNameWithHwModel (& host -> name );
@@ -188,6 +188,6 @@ bool ffHostDetectMac(FFHostResult* host)
188188            return  true;
189189        }
190190    }
191-     #endif 
192191    return  false;
193192}
193+ #endif 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments