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

stream_wrap: fix compilation errors

  • Loading branch information...
bnoordhuis committed May 9, 2012
1 parent b673d06 commit 7d2e68fdbde04b683242d82c26b8cf1d47407729
Showing with 9 additions and 6 deletions.
  1. +1 −6 src/stream_wrap.cc
  2. +8 −0 src/stream_wrap.h
@@ -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;
@@ -28,6 +28,14 @@

namespace node {


enum WriteEncoding {
kAscii,
kUtf8,
kUcs2
};


class StreamWrap : public HandleWrap {
public:
uv_stream_t* GetStream() { return stream_; }

0 comments on commit 7d2e68f

Please sign in to comment.
You can’t perform that action at this time.