From 2764a8ee8d507ee31c1ceab213fcfcbd1bbb37a6 Mon Sep 17 00:00:00 2001 From: Damien George Date: Sat, 18 Apr 2015 14:28:39 +0100 Subject: stmhal: Remove std.h. It's not needed anymore. --- drivers/cc3000/src/inet_ntop.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'drivers') diff --git a/drivers/cc3000/src/inet_ntop.c b/drivers/cc3000/src/inet_ntop.c index c03ac44cd..83242efa0 100644 --- a/drivers/cc3000/src/inet_ntop.c +++ b/drivers/cc3000/src/inet_ntop.c @@ -15,12 +15,16 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include #include #include "cc3000_common.h" #include "socket.h" #include "inet_ntop.h" +// We can't include stdio.h because it defines _types_fd_set, but we +// need to use the CC3000 version of this type. So we must provide +// our own declaration of snprintf. Grrr. +int snprintf(char *str, size_t size, const char *fmt, ...); + #define IN6ADDRSZ 16 #define INADDRSZ 4 #define INT16SZ 2 -- cgit v1.2.3