From ace9785215b5649f2173ae2544340263059a0916 Mon Sep 17 00:00:00 2001 From: rokath Date: Fri, 12 Apr 2024 19:04:26 +0200 Subject: [PATCH] Undefine ID, Id, id, iD at the trice.h start to avoid name clashes just in case a previous header file used them (see issue #456) --- src/trice.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/trice.h b/src/trice.h index e49c350ae..75b660e54 100644 --- a/src/trice.h +++ b/src/trice.h @@ -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