Only include the static definition of freertos_tasks_c_additions_init if FREERTOS_TASKS_C_ADDITIONS_INIT is defined, matching the guide used to include the function's prototype.

pull/4/head
Richard Barry 7 years ago
parent 56dc0dd9b4
commit 78d20e2854

@ -5075,12 +5075,12 @@ when performing module tests). */
#include "freertos_tasks_c_additions.h" #include "freertos_tasks_c_additions.h"
#ifdef FREERTOS_TASKS_C_ADDITIONS_INIT
static void freertos_tasks_c_additions_init( void ) static void freertos_tasks_c_additions_init( void )
{ {
#ifdef FREERTOS_TASKS_C_ADDITIONS_INIT
FREERTOS_TASKS_C_ADDITIONS_INIT(); FREERTOS_TASKS_C_ADDITIONS_INIT();
#endif
} }
#endif
#endif #endif

Loading…
Cancel
Save