From 7ba5a74f2e7fb02f6ed6a9d6a545a4c4ce0a330c Mon Sep 17 00:00:00 2001 From: Marisa Kirisame Date: Tue, 8 Mar 2022 23:50:35 +0100 Subject: [PATCH] correct preprocessor fall-through for `stats.h` (linux) --- src/common/engine/stats.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/common/engine/stats.h b/src/common/engine/stats.h index 3530d1883..7e3e05d8c 100644 --- a/src/common/engine/stats.h +++ b/src/common/engine/stats.h @@ -78,7 +78,7 @@ inline uint64_t rdtsc() #elif defined __aarch64__ // TODO: Implement and test on ARM64 return 0; -#else // i386 +#elif defined __i386__ if (CPU.bRDTSC) { uint64_t tsc; @@ -86,6 +86,8 @@ inline uint64_t rdtsc() return tsc; } return 0; +#else + return 0; #endif // __amd64__ } #endif