Skip to content

Commit 633cee8

Browse files
committed
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 <l.burelli@arduino.cc>
1 parent fe30fe5 commit 633cee8

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

cores/arduino/Arduino.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,4 +160,8 @@ void analogWriteResolution(int bits);
160160
// Allow namespace-less operations if Arduino.h is included
161161
using namespace arduino;
162162

163+
#if __has_include("postvariant.h")
164+
#include "postvariant.h"
165+
#endif
166+
163167
#endif // __cplusplus

0 commit comments

Comments
 (0)