From 1f83b3382d240087c0271667a6bd38e09b518d79 Mon Sep 17 00:00:00 2001 From: Ahreum Jeong Date: Wed, 9 Aug 2017 18:59:46 +0900 Subject: [PATCH] Move a conditional for cplusplus down to include functions only --- os/include/tinyara/ttrace.h | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/os/include/tinyara/ttrace.h b/os/include/tinyara/ttrace.h index 4150df2..12c7eba 100644 --- a/os/include/tinyara/ttrace.h +++ b/os/include/tinyara/ttrace.h @@ -79,12 +79,6 @@ /**************************************************************************** * Public Variables ****************************************************************************/ - -#if defined(__cplusplus) -extern "C" -{ -#endif - struct sched_message { // total 32B pid_t prev_pid; // 2B uint8_t prev_prio; // 1B @@ -112,6 +106,9 @@ struct trace_packet { // total 44 byte(message), 12byte(uid) /**************************************************************************** * Public Function Prototypes ****************************************************************************/ +#if defined(__cplusplus) +extern "C" { +#endif int trace_begin(int tag, char *str, ...); int trace_begin_u(int tag, int8_t uid); int trace_end(int tag); -- 2.7.4