瀏覽代碼

Merge pull request #83 from GrayShade/remove-string-functions

Remove functions already defined in the standard library
main
Paul Stoffregen 8 年之前
父節點
當前提交
e992f7037c
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. +4
    -0
      teensy3/avr_functions.h

+ 4
- 0
teensy3/avr_functions.h 查看文件

@@ -94,10 +94,14 @@ static inline void eeprom_update_block(const void *buf, void *addr, uint32_t len

char * ultoa(unsigned long val, char *buf, int radix);
char * ltoa(long val, char *buf, int radix);

#if defined(_NEWLIB_VERSION) && (__NEWLIB__ < 2 || __NEWLIB__ == 2 && __NEWLIB_MINOR__ < 2)
static inline char * utoa(unsigned int val, char *buf, int radix) __attribute__((always_inline, unused));
static inline char * utoa(unsigned int val, char *buf, int radix) { return ultoa(val, buf, radix); }
static inline char * itoa(int val, char *buf, int radix) __attribute__((always_inline, unused));
static inline char * itoa(int val, char *buf, int radix) { return ltoa(val, buf, radix); }
#endif

char * dtostrf(float val, int width, unsigned int precision, char *buf);



Loading…
取消
儲存