mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-15 04:39:42 +03:00
Use LWIP_PLATFORM_DIAG for LWIP
fprintf() is not guaranteed to be available. Or even printf(). Signed-off-by: Vlad Lungu <vlad.lungu@windriver.com>
This commit is contained in:
1 parent
75d00c8a50
commit
81865503a1
1 file changed
+5
@@ -34,6 +34,11 @@
|
||||
#include "encode.h"
|
||||
#include "net.h"
|
||||
|
||||
#ifdef WITH_LWIP
|
||||
# define fprintf(fd, ...) LWIP_PLATFORM_DIAG((__VA_ARGS__))
|
||||
# define fflush(...)
|
||||
#endif
|
||||
|
||||
#ifdef WITH_CONTIKI
|
||||
# ifndef DEBUG
|
||||
# define DEBUG DEBUG_PRINT
|
||||
|
||||
Reference in new issue
Block a user