Skip to content

Commit 3a68505

Browse files
committed
Added a guard to prevent some C++ infrastructure compilation on Arduino because
it might be defined already.
1 parent 8b53a42 commit 3a68505

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/abi/abi.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@
2828

2929
extern "C" {
3030

31+
#if defined(ARDUINO)
32+
/* Arduino defines some of these.
33+
* There can be link issues if they're redefined
34+
*/
35+
#else
3136
/* This function is called in the event that a non-overidden
3237
* pure virtual function is called. The compiler should never
3338
* let that happen. We get to choose what to do - we will abort
@@ -36,4 +41,5 @@ extern "C" {
3641
abort();
3742
}
3843

44+
#endif
3945
}

0 commit comments

Comments
 (0)