Skip to content

Commit

Permalink
For GCC10, we should check __cplusplus >= 201709L when determining if…
Browse files Browse the repository at this point in the history
… c++20 is supported (#949)
  • Loading branch information
schemborerik authored Aug 31, 2024
1 parent c54ba6f commit 5bc74d5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions include/etl/profiles/determine_compiler_language_support.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@ SOFTWARE.
#endif
#elif defined(ETL_COMPILER_ARM5)
#define ETL_CPP20_SUPPORTED 0
#elif defined(ETL_COMPILER_GCC)
#if (__GNUC__ == 10)
#define ETL_CPP20_SUPPORTED (__cplusplus >= 201709L)
#else
#define ETL_CPP20_SUPPORTED (__cplusplus >= 202002L)
#endif
#else
#define ETL_CPP20_SUPPORTED (__cplusplus >= 202002L)
#endif
Expand Down

0 comments on commit 5bc74d5

Please sign in to comment.