File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4949
5050// Detect allocation policy if not already set.
5151#if !defined(ERPC_ALLOCATION_POLICY)
52- #if defined(__has_include)
53- #if __has_include("FreeRTOSConfig.h")
54- #ifdef __cplusplus
55- extern " C" {
56- #endif
57- #include " FreeRTOSConfig.h"
58- #ifdef __cplusplus
59- }
60- #endif
61- #if defined(configSUPPORT_STATIC_ALLOCATION) && configSUPPORT_STATIC_ALLOCATION
62- #define ERPC_ALLOCATION_POLICY (ERPC_ALLOCATION_POLICY_STATIC)
63- #else
64- #define ERPC_ALLOCATION_POLICY (ERPC_ALLOCATION_POLICY_DYNAMIC)
65- #endif
52+ #if defined(__has_include) && __has_include("FreeRTOSConfig.h")
53+ #ifdef __cplusplus
54+ extern " C" {
55+ #endif
56+ #include " FreeRTOSConfig.h"
57+ #ifdef __cplusplus
58+ }
6659 #endif
60+ #if defined(configSUPPORT_STATIC_ALLOCATION) && configSUPPORT_STATIC_ALLOCATION
61+ #define ERPC_ALLOCATION_POLICY (ERPC_ALLOCATION_POLICY_STATIC)
62+ #else
63+ #define ERPC_ALLOCATION_POLICY (ERPC_ALLOCATION_POLICY_DYNAMIC)
64+ #endif
65+ #else
66+ #define ERPC_ALLOCATION_POLICY (ERPC_ALLOCATION_POLICY_DYNAMIC)
6767 #endif
6868#endif
6969
You can’t perform that action at this time.
0 commit comments