From 4e8672871b514f1c4c9c6ad3091cc69827198e54 Mon Sep 17 00:00:00 2001 From: Daniel Fekete Date: Tue, 11 Apr 2017 19:10:31 +0200 Subject: [PATCH] Fix compilation with gcc arm version 5 --- STM32/cores/arduino/itoa.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/STM32/cores/arduino/itoa.h b/STM32/cores/arduino/itoa.h index 59af109..58556b7 100644 --- a/STM32/cores/arduino/itoa.h +++ b/STM32/cores/arduino/itoa.h @@ -28,10 +28,15 @@ extern "C"{ extern void itoa( int n, char s[] ) ; #else + +#if __GNUC__ < 5 + +extern char* utoa( unsigned long value, char *string, int radix ) ; + +#endif extern char* itoa( int value, char *string, int radix ) ; extern char* ltoa( long value, char *string, int radix ) ; -extern char* utoa( unsigned long value, char *string, int radix ) ; extern char* ultoa( unsigned long value, char *string, int radix ) ; #endif /* 0 */