diff options
author | Sam Guyer <sam.guyer@gmail.com> | 2020-06-14 05:15:40 +0300 |
---|---|---|
committer | Sam Guyer <sam.guyer@gmail.com> | 2020-06-14 05:15:40 +0300 |
commit | cb435ef80603d8b59dff5fc589071abcffaaaedf (patch) | |
tree | 8544e26112fed751c18db064a415989c34b435a3 /src/cpp_compat.h | |
parent | b70d8689c0451a742689899ad103bc0e7851d857 (diff) |
Restructure for 1.5.x Arduino libraries: all of the code goes under the src directory
Diffstat (limited to 'src/cpp_compat.h')
-rw-r--r-- | src/cpp_compat.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/cpp_compat.h b/src/cpp_compat.h new file mode 100644 index 00000000..ab5b773a --- /dev/null +++ b/src/cpp_compat.h @@ -0,0 +1,16 @@ +#ifndef __INC_CPP_COMPAT_H +#define __INC_CPP_COMPAT_H + +#include "FastLED.h" + +#if __cplusplus <= 199711L + +#define static_assert(expression, message) +#define constexpr const + +#else + +// things that we can turn on if we're in a C++11 environment +#endif + +#endif |