mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
build: fix windows build
Be very careful with forward declarations, MSVC is quite picky and rather stupid about it. Fixes #5810.
This commit is contained in:
57
src/node.h
57
src/node.h
@@ -66,6 +66,36 @@
|
||||
|
||||
#include "node_object_wrap.h"
|
||||
|
||||
// Forward-declare these functions now to stop MSVS from becoming
|
||||
// terminally confused when it's done in node_internals.h
|
||||
namespace node {
|
||||
|
||||
NODE_EXTERN v8::Local<v8::Value> ErrnoException(int errorno,
|
||||
const char* syscall = NULL,
|
||||
const char* message = NULL,
|
||||
const char* path = NULL);
|
||||
NODE_EXTERN v8::Local<v8::Value> UVException(int errorno,
|
||||
const char* syscall = NULL,
|
||||
const char* message = NULL,
|
||||
const char* path = NULL);
|
||||
NODE_EXTERN v8::Handle<v8::Value> MakeCallback(
|
||||
const v8::Handle<v8::Object> recv,
|
||||
const char* method,
|
||||
int argc,
|
||||
v8::Handle<v8::Value>* argv);
|
||||
NODE_EXTERN v8::Handle<v8::Value> MakeCallback(
|
||||
const v8::Handle<v8::Object> object,
|
||||
const v8::Handle<v8::String> symbol,
|
||||
int argc,
|
||||
v8::Handle<v8::Value>* argv);
|
||||
NODE_EXTERN v8::Handle<v8::Value> MakeCallback(
|
||||
const v8::Handle<v8::Object> object,
|
||||
const v8::Handle<v8::Function> callback,
|
||||
int argc,
|
||||
v8::Handle<v8::Value>* argv);
|
||||
|
||||
} // namespace node
|
||||
|
||||
#if NODE_WANT_INTERNALS
|
||||
# include "node_internals.h"
|
||||
#endif
|
||||
@@ -147,16 +177,6 @@ NODE_EXTERN ssize_t DecodeWrite(char *buf,
|
||||
v8::Local<v8::Object> BuildStatsObject(const uv_stat_t* s);
|
||||
|
||||
|
||||
NODE_EXTERN v8::Local<v8::Value> ErrnoException(int errorno,
|
||||
const char *syscall = NULL,
|
||||
const char *msg = "",
|
||||
const char *path = NULL);
|
||||
|
||||
NODE_EXTERN v8::Local<v8::Value> UVException(int errorno,
|
||||
const char *syscall = NULL,
|
||||
const char *msg = NULL,
|
||||
const char *path = NULL);
|
||||
|
||||
#ifdef _WIN32
|
||||
NODE_EXTERN v8::Local<v8::Value> WinapiErrnoException(int errorno,
|
||||
const char *syscall = NULL, const char *msg = "",
|
||||
@@ -217,23 +237,6 @@ node_module_struct* get_builtin_module(const char *name);
|
||||
NODE_EXTERN void AtExit(void (*cb)(void* arg), void* arg = 0);
|
||||
|
||||
NODE_EXTERN void SetErrno(uv_err_t err);
|
||||
NODE_EXTERN v8::Handle<v8::Value>
|
||||
MakeCallback(const v8::Handle<v8::Object> object,
|
||||
const char* method,
|
||||
int argc,
|
||||
v8::Handle<v8::Value> argv[]);
|
||||
|
||||
NODE_EXTERN v8::Handle<v8::Value>
|
||||
MakeCallback(const v8::Handle<v8::Object> object,
|
||||
const v8::Handle<v8::String> symbol,
|
||||
int argc,
|
||||
v8::Handle<v8::Value> argv[]);
|
||||
|
||||
NODE_EXTERN v8::Handle<v8::Value>
|
||||
MakeCallback(const v8::Handle<v8::Object> object,
|
||||
const v8::Handle<v8::Function> callback,
|
||||
int argc,
|
||||
v8::Handle<v8::Value> argv[]);
|
||||
|
||||
} // namespace node
|
||||
|
||||
|
||||
Reference in New Issue
Block a user