From 1c6a57e15db5216dd59521f9f16e29e12f569c81 Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Tue, 18 Feb 2014 21:02:54 +0100 Subject: [PATCH] Include stdio.h in dtostrf.c This makes the declaration of sprintf available, so the function is not implicitely declared, which triggers two compiler warnings. This helps towards #1792 --- hardware/arduino/sam/cores/arduino/avr/dtostrf.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hardware/arduino/sam/cores/arduino/avr/dtostrf.c b/hardware/arduino/sam/cores/arduino/avr/dtostrf.c index 51541739c..7f90154fb 100644 --- a/hardware/arduino/sam/cores/arduino/avr/dtostrf.c +++ b/hardware/arduino/sam/cores/arduino/avr/dtostrf.c @@ -18,6 +18,8 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#include + char *dtostrf (double val, signed char width, unsigned char prec, char *sout) { char fmt[20]; sprintf(fmt, "%%%d.%df", width, prec);