MIP_SDK  latest-2-g34f3e39
MicroStrain Communications Library for embedded systems
platform.hpp
Go to the documentation of this file.
1 #pragma once
2 
4 
5 #ifdef __has_include
6 #if __has_include(<version>)
7 #include <version>
8 #endif
9 #endif
10 
11 #if __cpp_inline_variables >= 201606L
12 #define INLINE_VAR inline
13 #else
14 #define INLINE_VAR
15 #endif
16 
17 
18 #if __cpp_if_constexpr >= 201606L
19  #define IF_CONSTEXPR if constexpr
20 #else
21  #define IF_CONSTEXPR if
22 #endif
23 
24 #if __cpp_lib_optional >= 201606L
25 #define MICROSTRAIN_HAS_OPTIONAL
26 #endif
platform.h