#9294·Arduino

"LWIP_NO_CTYPE_H" redefined

Author: MrToM528Created Nov 18, 2025Updated Nov 18, 2025

3.1.2/tools/sdk/lwip2/include/lwip/arch.h defines LWIP_NO_CTYPE_H on line 215:

214 | #ifndef LWIP_NO_CTYPE_H
215 | #define LWIP_NO_CTYPE_H 0
216 | #endif

3.1.2/tools/sdk/lwip2/include/arch/cc.h then defines it again on line 68:

68 | #define LWIP_NO_CTYPE_H 1

Result is an redefine error.

Wrapping with an #ifndef removes the warning and the sketch compiles ok, but I'm unsure if this is the right thing to do.

68 | #ifndef LWIP_NO_CTYPE_H
69 | #define LWIP_NO_CTYPE_H 1
70 | #endif