From 4f1672dcef1f464e800e1566f8887c2af545457a Mon Sep 17 00:00:00 2001 From: Luca Burelli Date: Fri, 6 Mar 2026 18:36:56 +0100 Subject: [PATCH] feat: import postvariant.h if it exists This commit adds a conditional include for "postvariant.h" in the Arduino.h header file. If it exists, it will be included after the main Arduino definitions. This allows for additional variant-specific configurations or overrides to be applied without modifying the core Arduino.h file directly. Signed-off-by: Luca Burelli Signed-off-by: TOKITA Hiroshi --- cores/arduino/Arduino.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cores/arduino/Arduino.h b/cores/arduino/Arduino.h index 32ee32529..05acfa417 100644 --- a/cores/arduino/Arduino.h +++ b/cores/arduino/Arduino.h @@ -166,4 +166,8 @@ void analogWriteResolution(int bits); // Allow namespace-less operations if Arduino.h is included using namespace arduino; +#if __has_include("postvariant.h") +#include "postvariant.h" +#endif + #endif // __cplusplus