diff --git a/include/etl/profiles/determine_compiler.h b/include/etl/profiles/determine_compiler.h index 5428f35a2..39cb9a43a 100644 --- a/include/etl/profiles/determine_compiler.h +++ b/include/etl/profiles/determine_compiler.h @@ -79,7 +79,7 @@ SOFTWARE. #if defined(__clang__) || defined(__llvm__) #define ETL_COMPILER_CLANG #define ETL_COMPILER_TYPE_DETECTED - #if __AVR__ == 1 + #if defined(__AVR__) && (__AVR__ == 1) #define ETL_CROSS_COMPILING_TO_AVR #endif #endif