Skip to content

Commit 8f70a3c

Browse files
committed
Fixed <bit> include for C++20 & STL
1 parent 9bb2edf commit 8f70a3c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

include/etl/unaligned_type.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ SOFTWARE.
4545
#include "exception.h"
4646
#include "file_error_numbers.h"
4747

48-
#include <bit>
48+
#if ETL_USING_CPP20 && ETL_USING_STL
49+
#include <bit>
50+
#endif
4951

5052
#include <string.h>
5153

0 commit comments

Comments
 (0)