From 8fecb4f3bcc65073c7950b347c6777143b2a3b28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Luc=20B=C3=A9chennec?= Date: Wed, 6 Apr 2016 18:39:26 +0200 Subject: [PATCH] Fix conflict with declaration in std lib and gcc version > 4.9.2 --- hardware/arduino/sam/cores/arduino/itoa.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/hardware/arduino/sam/cores/arduino/itoa.h b/hardware/arduino/sam/cores/arduino/itoa.h index 59af109473c..f2e483343b3 100644 --- a/hardware/arduino/sam/cores/arduino/itoa.h +++ b/hardware/arduino/sam/cores/arduino/itoa.h @@ -31,7 +31,14 @@ extern void itoa( int n, char s[] ) ; extern char* itoa( int value, char *string, int radix ) ; extern char* ltoa( long value, char *string, int radix ) ; +#if __GNUC__ > 4 || \ + (__GNUC__ == 4 && (__GNUC_MINOR__ > 9 || \ + (__GNUC_MINOR__ == 9 && \ + __GNUC_PATCHLEVEL__ > 2))) +extern char* utoa( unsigned value, char *string, int radix ) ; +#else extern char* utoa( unsigned long value, char *string, int radix ) ; +#endif extern char* ultoa( unsigned long value, char *string, int radix ) ; #endif /* 0 */