Jan Breuer
2015-04-19 6fedcce7ebdb7fae4d1f11af5194f919352235bf
Next try to correct avr-libc detection
1个文件已修改
5 ■■■■■ 已修改文件
libscpi/inc/scpi/config.h 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
libscpi/inc/scpi/config.h
@@ -64,7 +64,8 @@
#endif
/* AVR libc */
#if defined(__AVR_LIBC_VERSION__)
#if defined(__AVR__)
#include <stdlib.h>
#define HAVE_DTOSTRE            1
#endif
@@ -98,7 +99,7 @@
#endif
#if HAVE_DTOSTRE
#define SCPI_doubleToStr(v, s, l) strlen(dtostre((v), (s), 6, DTOSTR_PLUS_SIGN | DTOSTRE_ALWAYS_SIGN | DTOSTR_UPPERCASE))
#define SCPI_doubleToStr(v, s, l) strlen(dtostre((v), (s), 6, DTOSTR_PLUS_SIGN | DTOSTR_ALWAYS_SIGN | DTOSTR_UPPERCASE))
#else
#define SCPI_doubleToStr(v, s, l) snprintf((s), (l), "%lg", (v))
#endif