From 7d2e68fdbde04b683242d82c26b8cf1d47407729 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Wed, 9 May 2012 06:06:42 +0200 Subject: [PATCH] stream_wrap: fix compilation errors --- src/stream_wrap.cc | 7 +------ src/stream_wrap.h | 8 ++++++++ 2 files changed, 9 insertions(+), 6 deletions(-) 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_; }