Browse Source

stream_wrap: fix compilation errors

v0.9.1-release
Ben Noordhuis 13 years ago
parent
commit
7d2e68fdbd
  1. 7
      src/stream_wrap.cc
  2. 8
      src/stream_wrap.h

7
src/stream_wrap.cc

@ -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;

8
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_; }

Loading…
Cancel
Save