From 7bc260f5c4a9ad8605b88010535cd0458e97b8fb Mon Sep 17 00:00:00 2001 From: gengjiawen Date: Sun, 24 Mar 2019 13:46:08 +0800 Subject: [PATCH] src: add include guard for trace_event_common.h PR-URL: https://github.com/nodejs/node/pull/26883 Reviewed-By: Anna Henningsen Reviewed-By: Refael Ackermann --- src/tracing/trace_event_common.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/tracing/trace_event_common.h b/src/tracing/trace_event_common.h index df923f81b65a0e..be1c68cfae9286 100644 --- a/src/tracing/trace_event_common.h +++ b/src/tracing/trace_event_common.h @@ -2,6 +2,9 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +#ifndef SRC_TRACE_EVENT_COMMON_H +#define SRC_TRACE_EVENT_COMMON_H + // This header file defines the set of trace_event macros without specifying // how the events actually get collected and stored. If you need to expose trace // events to some other universe, you can copy-and-paste this file as well as @@ -1102,3 +1105,5 @@ #define TRACE_EVENT_SCOPE_NAME_GLOBAL ('g') #define TRACE_EVENT_SCOPE_NAME_PROCESS ('p') #define TRACE_EVENT_SCOPE_NAME_THREAD ('t') + +#endif // SRC_TRACE_EVENT_COMMON_H