Browse Source

src: move trace_event.h include to internal header

Move the include from src/node.h to src/node_internals.h.

trace_event.h is not shipped in binary-only and headers-only tarballs,
making it currently impossible to build add-ons against them.

PR-URL: https://github.com/nodejs/node/pull/10959
Refs: https://github.com/nodejs/citgm/pull/226#issuecomment-274066280
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Matthew Loring <mattloring@google.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
v7.x
Ben Noordhuis 8 years ago
committed by Italo A. Casas
parent
commit
96f55f9e59
No known key found for this signature in database GPG Key ID: 23EFEFE93C4CFFFE
  1. 1
      src/node.h
  2. 1
      src/node_internals.h

1
src/node.h

@ -41,7 +41,6 @@
#include "v8.h" // NOLINT(build/include_order)
#include "node_version.h" // NODE_MODULE_VERSION
#include "tracing/trace_event.h"
#define NODE_MAKE_VERSION(major, minor, patch) \
((major) * 0x1000 + (minor) * 0x100 + (patch))

1
src/node_internals.h

@ -8,6 +8,7 @@
#include "util-inl.h"
#include "uv.h"
#include "v8.h"
#include "tracing/trace_event.h"
#include <stdint.h>
#include <stdlib.h>

Loading…
Cancel
Save