Skip to content

Commit 53f3b12

Browse files
committed
node: tag Encode and friends NODE_EXTERN
Makes the symbols visible on Windows. They were already visible on Unices. Fixes #3811.
1 parent f1fba8d commit 53f3b12

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/node.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -133,18 +133,18 @@ enum encoding ParseEncoding(v8::Handle<v8::Value> encoding_v,
133133
NODE_EXTERN void FatalException(v8::TryCatch &try_catch);
134134
void DisplayExceptionLine(v8::TryCatch &try_catch); // hack
135135

136-
v8::Local<v8::Value> Encode(const void *buf, size_t len,
137-
enum encoding encoding = BINARY);
136+
NODE_EXTERN v8::Local<v8::Value> Encode(const void *buf, size_t len,
137+
enum encoding encoding = BINARY);
138138

139139
// Returns -1 if the handle was not valid for decoding
140-
ssize_t DecodeBytes(v8::Handle<v8::Value>,
141-
enum encoding encoding = BINARY);
140+
NODE_EXTERN ssize_t DecodeBytes(v8::Handle<v8::Value>,
141+
enum encoding encoding = BINARY);
142142

143143
// returns bytes written.
144-
ssize_t DecodeWrite(char *buf,
145-
size_t buflen,
146-
v8::Handle<v8::Value>,
147-
enum encoding encoding = BINARY);
144+
NODE_EXTERN ssize_t DecodeWrite(char *buf,
145+
size_t buflen,
146+
v8::Handle<v8::Value>,
147+
enum encoding encoding = BINARY);
148148

149149
v8::Local<v8::Object> BuildStatsObject(const uv_statbuf_t* s);
150150

0 commit comments

Comments
 (0)