This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

smalloc: remove `env.h` include

Since `smalloc.h` is included in a `node_buffer.h`, including private
headers in it is strictly prohibited.

fix #7206
  • Loading branch information...
1 parent 5596f93 commit 34bf6e46beb4b94e9ed3c51da8589d604f19bc4e @indutny indutny committed Feb 28, 2014
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/smalloc.h
View
@@ -24,10 +24,12 @@
#include "node.h"
#include "v8.h"
-#include "env.h"
namespace node {
+// Forward declaration
+class Environment;
+
/**
* Simple memory allocator.
*

0 comments on commit 34bf6e4

Please sign in to comment.