Skip to content

Commit e736479

Browse files
committed
Host (Windows): fix build on WoA
1 parent d2b3a07 commit e736479

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/detection/host/host.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ typedef struct FFHostResult
1414
} FFHostResult;
1515

1616
const char* ffHostGetMacProductNameWithHwModel(const FFstrbuf* hwModel);
17-
#ifdef __x86_64__
17+
#if __x86_64__
1818
bool ffHostDetectMac(FFHostResult* host);
1919
#endif
2020
const char* ffDetectHost(FFHostResult* host);

src/detection/host/host_windows.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ const char* ffDetectHost(FFHostResult* host)
7272
ffCleanUpSmbiosValue(&host->family);
7373
}
7474

75-
#if _WIN64
75+
#if _WIN64 && __x86_64__ // aarch64 also defines _WIN64
7676
ffHostDetectMac(host);
7777
#endif
7878

0 commit comments

Comments
 (0)