From: rtel Date: Mon, 20 Aug 2018 15:08:35 +0000 (+0000) Subject: Only include the static definition of freertos_tasks_c_additions_init if FREERTOS_TAS... X-Git-Tag: V10.1.0~5 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=bd05520bc520a20c1d69b9a1eec0e4e8e1adc014;p=freertos 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. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@2560 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- diff --git a/FreeRTOS/Source/tasks.c b/FreeRTOS/Source/tasks.c index f882a5112..ceb863c58 100644 --- a/FreeRTOS/Source/tasks.c +++ b/FreeRTOS/Source/tasks.c @@ -5075,12 +5075,12 @@ when performing module tests). */ #include "freertos_tasks_c_additions.h" - static void freertos_tasks_c_additions_init( void ) - { - #ifdef FREERTOS_TASKS_C_ADDITIONS_INIT + #ifdef FREERTOS_TASKS_C_ADDITIONS_INIT + static void freertos_tasks_c_additions_init( void ) + { FREERTOS_TASKS_C_ADDITIONS_INIT(); - #endif - } + } + #endif #endif