FastLED 3.9.15
Loading...
Searching...
No Matches
stddef.h
Go to the documentation of this file.
1#pragma once
2
4// FastLED Standard Definition Types (stddef.h equivalents)
5//
6// IMPORTANT: FastLED has carefully purged <stddef.h> from the include path
7// because including that header adds compilation time to every *.o file.
8//
9// This file provides size_t, ptrdiff_t, NULL, and offsetof macro for C++
10// using the fl/cstddef.h foundation, similar to how fl/stdint.h works.
12
13#ifdef __cplusplus
14
15// Provide NULL definition for third-party code that needs it
16#ifndef NULL
17#define NULL nullptr
18#endif
19
20#else
21// C language support: delegate to fl/stl/cstddef.h
22#include "fl/stl/cstddef.h"
23
24#endif // __cplusplus