From: Ahreum Jeong Date: Wed, 9 Aug 2017 09:59:46 +0000 (+0900) Subject: Move a conditional for cplusplus down to include functions only X-Git-Tag: 1.1_Public_Release~391^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1f83b3382d240087c0271667a6bd38e09b518d79;p=rtos%2Ftinyara.git Move a conditional for cplusplus down to include functions only --- 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);