Skip to content

Commit

Permalink
Undefine ID, Id, id, iD at the trice.h start to avoid name clashes ju…
Browse files Browse the repository at this point in the history
…st in case a previous header file used them (see issue #456)
  • Loading branch information
rokath committed Apr 12, 2024
1 parent e78c5c5 commit ace9785
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/trice.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@
extern "C" {
#endif

#undef ID // acoid name clashes in case ID was used by an other library
#undef Id // acoid name clashes in case Id was used by an other library
#undef id // acoid name clashes in case id was used by an other library
#undef iD // acoid name clashes in case iD was used by an other library


//lint -e529 Warning 529: Symbol '_SEGGER_RTT__LockState' not subsequently referenced
//lint -e629 Warning 629: static class for function '' is non standard

Expand Down

0 comments on commit ace9785

Please sign in to comment.