1
0
Fork 0

Add missing #ifndef checks (#24)

Commit 2854ea4a introduced "#define CO_CONFIG_GFC ..." and "#define
CO_CONFIG_SRDO ..." without surrounding it around #ifndef.

As a result, when e.g. CO_CONFIG_GFC or CO_CONFIG_SRDO is defined in a
Makefile, the compiler will complain about redefining that variable.

Signed-off-by: Sam Van Den Berge <sam.van.den.berge@gmail.com>
This commit is contained in:
Sam Van Den Berge 2025-03-01 18:29:44 +01:00 committed by GitHub
parent e5655d1ce0
commit 52ffe7acb0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -102,11 +102,15 @@ extern "C" {
| CO_CONFIG_GLOBAL_FLAG_CALLBACK_PRE)
#endif
#ifndef CO_CONFIG_GFC
#define CO_CONFIG_GFC (CO_CONFIG_GFC_ENABLE | CO_CONFIG_GFC_CONSUMER | CO_CONFIG_GFC_PRODUCER)
#endif
#ifndef CO_CONFIG_SRDO
#define CO_CONFIG_SRDO \
(CO_CONFIG_SRDO_ENABLE | CO_CONFIG_SRDO_CHECK_TX | CO_CONFIG_GLOBAL_FLAG_CALLBACK_PRE \
| CO_CONFIG_GLOBAL_FLAG_TIMERNEXT)
#endif
#ifndef CO_CONFIG_GTW
#define CO_CONFIG_GTW \