Move a conditional for cplusplus down to include functions only
authorAhreum Jeong <ahreum.jeong@samsung.com>
Wed, 9 Aug 2017 09:59:46 +0000 (18:59 +0900)
committerAhreum Jeong <ahreum.jeong@samsung.com>
Wed, 9 Aug 2017 10:20:06 +0000 (19:20 +0900)
os/include/tinyara/ttrace.h

index 4150df2..12c7eba 100644 (file)
 /****************************************************************************
  * 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);