stream_wrap: fix compilation errors

pull/24503/head
Ben Noordhuis 2012-05-09 06:06:42 +02:00
parent b673d0670f
commit 7d2e68fdbd
2 changed files with 9 additions and 6 deletions

View File

@ -29,6 +29,7 @@
#include "req_wrap.h"
#include <stdlib.h> // abort()
#include <limits.h> // INT_MAX
#define SLAB_SIZE (1024 * 1024)
@ -293,12 +294,6 @@ Handle<Value> StreamWrap::WriteBuffer(const Arguments& args) {
}
enum WriteEncoding {
kAscii,
kUtf8,
kUcs2
};
template <WriteEncoding encoding>
Handle<Value> StreamWrap::WriteStringImpl(const Arguments& args) {
HandleScope scope;

View File

@ -28,6 +28,14 @@
namespace node {
enum WriteEncoding {
kAscii,
kUtf8,
kUcs2
};
class StreamWrap : public HandleWrap {
public:
uv_stream_t* GetStream() { return stream_; }