From f09ea3c05ab7a35ca1857bb152b1b929b628bf59 Mon Sep 17 00:00:00 2001 From: Christopher Haster Date: Thu, 12 Feb 2026 02:38:39 -0600 Subject: [PATCH] runners: Added BENCH_INCLUDE include guards When BENCH_INCLUDE is defined, bench_defines.h should behave like a normal header file. This includes include guards in case the header file is included multiple times. --- runners/bench_defines.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/runners/bench_defines.h b/runners/bench_defines.h index 17c9a6b2..34863c37 100644 --- a/runners/bench_defines.h +++ b/runners/bench_defines.h @@ -2,12 +2,17 @@ #ifdef BENCH_INCLUDE + #ifndef BENCH_DEFINES_H + #define BENCH_DEFINES_H + // DISK_GEOMETRY controls which simulation we use // 0 => NOR flash (the default) // 1 => NAND flash #define DISK_MAP(define) \ ((DISK_GEOMETRY == 0) ? NOR_##define \ : NAND_##define) + + #endif #endif // preconfigured defines that control how benches run