diff --git a/include/reactor-uc/tag.h b/include/reactor-uc/tag.h index 443ba5e1..985d373c 100644 --- a/include/reactor-uc/tag.h +++ b/include/reactor-uc/tag.h @@ -42,7 +42,8 @@ (tag_t) { .time = FOREVER, .microstep = FOREVER_MICROSTEP } // Need a separate initializer expression to comply with some C compilers #define FOREVER_TAG_INITIALIZER {FOREVER, FOREVER_MICROSTEP} -#define ZERO_TAG (tag_t){.time = 0LL, .microstep = 0u} +#define ZERO_TAG \ + (tag_t) { .time = 0LL, .microstep = 0u } // Returns true if timeout has elapsed. #define CHECK_TIMEOUT(start, duration) (lf_time_physical() > ((start) + (duration)))