]> git.sur5r.net Git - freertos/commitdiff
Only include the static definition of freertos_tasks_c_additions_init if FREERTOS_TAS...
authorrtel <rtel@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Mon, 20 Aug 2018 15:08:35 +0000 (15:08 +0000)
committerrtel <rtel@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Mon, 20 Aug 2018 15:08:35 +0000 (15:08 +0000)
git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@2560 1d2547de-c912-0410-9cb9-b8ca96c0e9e2

FreeRTOS/Source/tasks.c

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