Skip to content

Commit 92c2a81

Browse files
committed
Define dynamic policy by default.
Signed-off-by: Cervenka Dusan <cervenka@acrios.com>
1 parent 8c9045e commit 92c2a81

1 file changed

Lines changed: 14 additions & 14 deletions

File tree

erpc_c/port/erpc_config_internal.h

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -49,21 +49,21 @@
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

0 commit comments

Comments
 (0)