From ecd0f9d0e712fe1b93779bfd9b0e2a706d2616be Mon Sep 17 00:00:00 2001 From: Nitish Sakhawalkar Date: Mon, 12 Mar 2018 14:22:34 +0900 Subject: [PATCH] Fix build by adding define in node_includes.h --- atom/common/node_includes.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/atom/common/node_includes.h b/atom/common/node_includes.h index 76ce95a87644..b6317ca024ae 100644 --- a/atom/common/node_includes.h +++ b/atom/common/node_includes.h @@ -6,11 +6,26 @@ #define ATOM_COMMON_NODE_INCLUDES_H_ #include "base/logging.h" +#include "v8-platform.h" // Include common headers for using node APIs. #define BUILDING_NODE_EXTENSION +// The following define makes sure that we do not include the macros +// again. But we still need the tracing functions, so declaring them. +#define SRC_TRACING_TRACE_EVENT_H_ +namespace node { +namespace tracing { +class TraceEventHelper { + public: + static v8::TracingController* GetTracingController(); + static void SetTracingController(v8::TracingController* controller); +}; + +} +} + #undef ASSERT #undef CHECK #undef CHECK_EQ