Removing <cstddef> include for better toolchain compatibility (please update the LIB)

pull/18/head
Andy CA6JAU 8 years ago
parent d2f5386164
commit 8bcf38a414

@ -24,7 +24,6 @@ Boston, MA 02110-1301, USA.
#if defined(STM32F10X_MD) #if defined(STM32F10X_MD)
#include "stm32f10x.h" #include "stm32f10x.h"
#include <cstddef>
#else #else
#include <Arduino.h> #include <Arduino.h>
#endif #endif

@ -23,7 +23,6 @@ Boston, MA 02110-1301, USA.
#if defined(STM32F10X_MD) #if defined(STM32F10X_MD)
#include "stm32f10x.h" #include "stm32f10x.h"
#include <cstddef>
#else #else
#include <Arduino.h> #include <Arduino.h>
#endif #endif

@ -58,7 +58,7 @@ uint8_t countBits64(uint64_t bits)
// Simple functions to convert from int to string // Simple functions to convert from int to string
// Example from: https://stackoverflow.com/questions/8257714/how-to-convert-an-int-to-string-in-c // Example from: https://stackoverflow.com/questions/8257714/how-to-convert-an-int-to-string-in-c
static uint8_t *i2str_helper(uint8_t *dest, size_t n, int32_t x) { static uint8_t *i2str_helper(uint8_t *dest, uint32_t n, int32_t x) {
if (n == 0) { if (n == 0) {
return NULL; return NULL;
} }
@ -70,7 +70,7 @@ static uint8_t *i2str_helper(uint8_t *dest, size_t n, int32_t x) {
return dest + 1; return dest + 1;
} }
uint8_t *i2str(uint8_t *dest, size_t n, int32_t x) { uint8_t *i2str(uint8_t *dest, uint32_t n, int32_t x) {
uint8_t *p = dest; uint8_t *p = dest;
if (n == 0) { if (n == 0) {
return NULL; return NULL;

@ -21,7 +21,6 @@
#if defined(STM32F10X_MD) #if defined(STM32F10X_MD)
#include "stm32f10x.h" #include "stm32f10x.h"
#include <cstddef>
#else #else
#include <Arduino.h> #include <Arduino.h>
#endif #endif
@ -32,7 +31,7 @@ uint8_t countBits32(uint32_t bits);
uint8_t countBits64(uint64_t bits); uint8_t countBits64(uint64_t bits);
uint8_t *i2str(uint8_t *dest, size_t n, int32_t x); uint8_t *i2str(uint8_t *dest, uint32_t n, int32_t x);
#endif #endif

Loading…
Cancel
Save

Powered by TurnKey Linux.