26 lines
518 B
C++
26 lines
518 B
C++
#pragma once
|
|
|
|
|
|
#ifdef FASTLED_TESTING
|
|
#include <cstddef> // ok include
|
|
#endif
|
|
|
|
namespace fl {
|
|
|
|
// FastLED equivalent of std::nullptr_t
|
|
typedef decltype(nullptr) nullptr_t;
|
|
|
|
// FastLED equivalent of std::size_t and std::ptrdiff_t
|
|
// These are defined here for completeness but may already exist elsewhere
|
|
#ifndef FL_SIZE_T_DEFINED
|
|
#define FL_SIZE_T_DEFINED
|
|
typedef __SIZE_TYPE__ size_t;
|
|
#endif
|
|
|
|
#ifndef FL_PTRDIFF_T_DEFINED
|
|
#define FL_PTRDIFF_T_DEFINED
|
|
typedef __PTRDIFF_TYPE__ ptrdiff_t;
|
|
#endif
|
|
|
|
} // namespace fl
|