summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Bright <drpizza@quiscalusmexicanus.org>2011-08-07 06:11:21 +0100
committerRyan Dahl <ry@tinyclouds.org>2011-08-06 22:39:28 -0700
commit6ac8c559897ae09a4f9e84cda1e90e6c56ca92bf (patch)
tree42d519afd24dd0bc8512dbee7c6af54583630c43 /src
parentb88c48177a5301cfabbb3d0790187d3b6dacdbda (diff)
downloadnodejs-6ac8c559897ae09a4f9e84cda1e90e6c56ca92bf.tar.gz
nodejs-6ac8c559897ae09a4f9e84cda1e90e6c56ca92bf.tar.bz2
nodejs-6ac8c559897ae09a4f9e84cda1e90e6c56ca92bf.zip
Make MSVS build.
MSVS settings don't actually need to be guarded by conditions. gyp will do the right thing.
Diffstat (limited to 'src')
-rw-r--r--src/node_extensions.h2
-rw-r--r--src/node_file.cc6
-rw-r--r--src/node_http_parser.cc6
3 files changed, 9 insertions, 5 deletions
diff --git a/src/node_extensions.h b/src/node_extensions.h
index 7e55afd21..d33a52304 100644
--- a/src/node_extensions.h
+++ b/src/node_extensions.h
@@ -26,7 +26,7 @@ NODE_EXT_LIST_ITEM(node_buffer)
NODE_EXT_LIST_ITEM(node_cares)
NODE_EXT_LIST_ITEM(node_child_process)
#endif
-#ifdef HAVE_OPENSSL
+#if HAVE_OPENSSL
NODE_EXT_LIST_ITEM(node_crypto)
#endif
NODE_EXT_LIST_ITEM(node_evals)
diff --git a/src/node_file.cc b/src/node_file.cc
index 3485cfbce..2e7c75a46 100644
--- a/src/node_file.cc
+++ b/src/node_file.cc
@@ -602,7 +602,7 @@ static Handle<Value> MKDir(const Arguments& args) {
}
String::Utf8Value path(args[0]->ToString());
- mode_t mode = static_cast<mode_t>(args[1]->Int32Value());
+ eio_mode_t mode = static_cast<eio_mode_t>(args[1]->Int32Value());
if (args[2]->IsFunction()) {
ASYNC_CALL(mkdir, args[2], *path, mode)
@@ -714,7 +714,7 @@ static Handle<Value> Open(const Arguments& args) {
String::Utf8Value path(args[0]->ToString());
int flags = args[1]->Int32Value();
- mode_t mode = static_cast<mode_t>(args[2]->Int32Value());
+ eio_mode_t mode = static_cast<eio_mode_t>(args[2]->Int32Value());
if (args[3]->IsFunction()) {
ASYNC_CALL(open, args[3], *path, flags, mode)
@@ -875,7 +875,7 @@ static Handle<Value> Chmod(const Arguments& args) {
return THROW_BAD_ARGS;
}
String::Utf8Value path(args[0]->ToString());
- mode_t mode = static_cast<mode_t>(args[1]->Int32Value());
+ eio_mode_t mode = static_cast<eio_mode_t>(args[1]->Int32Value());
if(args[2]->IsFunction()) {
ASYNC_CALL(chmod, args[2], *path, mode);
diff --git a/src/node_http_parser.cc b/src/node_http_parser.cc
index 6cb78455b..b99e20504 100644
--- a/src/node_http_parser.cc
+++ b/src/node_http_parser.cc
@@ -27,8 +27,12 @@
#include <http_parser.h>
-#include <strings.h> /* strcasecmp() */
#include <string.h> /* strdup() */
+#if !defined(_MSC_VER)
+#include <strings.h> /* strcasecmp() */
+#else
+#define strcasecmp _stricmp
+#endif
#include <stdlib.h> /* free() */
// This is a binding to http_parser (http://github.com/ry/http-parser)