diff --git a/src/stream_wrap.cc b/src/stream_wrap.cc index 4eea7c9239..71fd5e62f7 100644 --- a/src/stream_wrap.cc +++ b/src/stream_wrap.cc @@ -29,6 +29,7 @@ #include "req_wrap.h" #include // abort() +#include // INT_MAX #define SLAB_SIZE (1024 * 1024) @@ -293,12 +294,6 @@ Handle StreamWrap::WriteBuffer(const Arguments& args) { } -enum WriteEncoding { - kAscii, - kUtf8, - kUcs2 -}; - template Handle StreamWrap::WriteStringImpl(const Arguments& args) { HandleScope scope; diff --git a/src/stream_wrap.h b/src/stream_wrap.h index 40947d5085..43702f3c93 100644 --- a/src/stream_wrap.h +++ b/src/stream_wrap.h @@ -28,6 +28,14 @@ namespace node { + +enum WriteEncoding { + kAscii, + kUtf8, + kUcs2 +}; + + class StreamWrap : public HandleWrap { public: uv_stream_t* GetStream() { return stream_; }