From cbc36724cd7d2a6f54237442e47286e438729e5b Mon Sep 17 00:00:00 2001 From: Michael Richters Date: Tue, 22 Mar 2022 16:54:48 -0500 Subject: [PATCH] Bypass `version.h` checks when running include-what-you-use Signed-off-by: Michael Richters --- src/kaleidoscope/version.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/kaleidoscope/version.h b/src/kaleidoscope/version.h index 333d5bae..97cf4171 100644 --- a/src/kaleidoscope/version.h +++ b/src/kaleidoscope/version.h @@ -1,5 +1,12 @@ +// -*- mode: c++ -*- + #pragma once +// We use `include-what-you-use`, which uses `clang` to help manage header +// includes. If we don't guard this file with an #ifdef, it will cause that to +// fail on any file that includes this header. +#ifndef __clang__ + #define KALEIDOSCOPE_AVR_GCC_MINIMAL_VERSION 5 #define KALEIDOSCOPE_AVR_GCC_MINIMAL_MINOR 4 @@ -9,3 +16,5 @@ ) #error Kaleidoscope requires Arduino version >= 1.8.6 to build. Please upgrade. #endif + +#endif // #ifndef __clang__