ETLCPP / etl

Embedded Template Library
https://www.etlcpp.com
MIT License
2.24k stars 392 forks source link

Fixes compiler detection with Wundef #934

Closed RafaelLaya closed 3 months ago

RafaelLaya commented 3 months ago

When Wundef is passed to GCC, the preprocessor will complain that __AVR__ is not defined and thus it has to default it to zero. A simple fix is to check if it's defined and use short-circuiting logic to then check the value

semanticdiff-com[bot] commented 3 months ago

Review changes with SemanticDiff.