projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5596f93
)
smalloc: remove `env.h` include
author
Fedor Indutny
<fedor.indutny@gmail.com>
Fri, 28 Feb 2014 16:52:32 +0000
(20:52 +0400)
committer
Fedor Indutny
<fedor.indutny@gmail.com>
Sun, 2 Mar 2014 08:05:13 +0000
(12:05 +0400)
Since `smalloc.h` is included in a `node_buffer.h`, including private
headers in it is strictly prohibited.
fix #7206
src/smalloc.h
patch
|
blob
|
history
diff --git
a/src/smalloc.h
b/src/smalloc.h
index
97dda17
..
3321b4a
100644
(file)
--- a/
src/smalloc.h
+++ b/
src/smalloc.h
@@
-24,10
+24,12
@@
#include "node.h"
#include "v8.h"
-#include "env.h"
namespace node {
+// Forward declaration
+class Environment;
+
/**
* Simple memory allocator.
*