Skip to content

Commit 8c6ce6a

Browse files
committed
asf4-drivers: Make utils_assert.h compatible with newer compilers
In the new toolchain `assert` is defined as a macro. That interferes with the ASF function called `assert` so we undefined it right before that function is defined.
1 parent 062b450 commit 8c6ce6a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

external/asf4-drivers/hal/utils/include/utils_assert.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@
4444
#ifndef _ASSERT_H_INCLUDED
4545
#define _ASSERT_H_INCLUDED
4646

47+
#undef assert
48+
4749
#ifdef __cplusplus
4850
extern "C" {
4951
#endif

0 commit comments

Comments
 (0)