From ff6d336e8b1657e9249f688360a226a70eafe264 Mon Sep 17 00:00:00 2001 From: Billy Kozak Date: Fri, 26 Feb 2016 08:26:31 -0700 Subject: [PATCH] Fix warning about missing strcasecmp definition On platforms which do not define the macro __SDCC the strcasecmp function may not have a definition (true at least on CC26xx). The prototype for this function is now defined if __SDCC is false. --- core/net/ip/resolv.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/net/ip/resolv.c b/core/net/ip/resolv.c index 0dd06104b..2a3d39106 100644 --- a/core/net/ip/resolv.c +++ b/core/net/ip/resolv.c @@ -111,6 +111,9 @@ strcasecmp(const char *s1, const char *s2) /* TODO: Add case support! */ return strcmp(s1, s2); } +#else +int strcasecmp(const char *s1, const char *s2); +int strncasecmp(const char *s1, const char *s2, size_t n); #endif /* __SDCC */ #define UIP_UDP_BUF ((struct uip_udpip_hdr *)&uip_buf[UIP_LLH_LEN])