Skip to content

Commit

Permalink
Added a guard to prevent some C++ infrastructure compilation on Ardui…
Browse files Browse the repository at this point in the history
…no because

it might be defined already.
  • Loading branch information
mike-matera committed Jan 12, 2017
1 parent 8b53a42 commit 3a68505
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/abi/abi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@

extern "C" {

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

#endif
}

0 comments on commit 3a68505

Please sign in to comment.