From 78d20e2854a2aca590e5983ced5df89fddbbfb77 Mon Sep 17 00:00:00 2001
From: Richard Barry <ribarry@amazon.com>
Date: Mon, 20 Aug 2018 15:08:35 +0000
Subject: [PATCH] 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.

---
 FreeRTOS/Source/tasks.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

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