coap_net.h: add ifdef WITH_LWIP around lwip functions

This commit is contained in:
Mario Kicherer authored and Jon Shallow committed 2024-08-27 11:59:23 +01:00
1 parent a705e04ced
commit 1c97907f2f
3 files changed
+6 -1

No files matched your search

+3
View File
@@ -168,6 +168,9 @@ check_synopsis(const char *file) {
exit_code = 1;
return;
}
if (!strcmp(file, "coap_lwip.txt.in")) {
fprintf(fpcode, "#define WITH_LWIP_MAN_CHECK\n");
}
fprintf(fpcode, "#include <coap3/coap.h>\n");
fprintf(fpcode, "#ifdef __GNUC__\n");
fprintf(fpcode, "#define U __attribute__ ((unused))\n");