From 5c46f2d5237ff032dff628c3c1986819187762de Mon Sep 17 00:00:00 2001 From: adam Date: Tue, 30 Apr 2013 20:36:50 +0700 Subject: [PATCH] #61 --- node/ejdb_native.cc | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/node/ejdb_native.cc b/node/ejdb_native.cc index 1a93b90..68034f9 100644 --- a/node/ejdb_native.cc +++ b/node/ejdb_native.cc @@ -29,7 +29,15 @@ #include #include #include + +#ifdef _MSC_VER #include +#else +#include +#ifdef __GNUC__ +using namespace __gnu_cxx; +#endif +#endif using namespace node; using namespace v8; @@ -147,7 +155,11 @@ namespace ejdb { } }; +#ifdef _MSC_VER typedef std::unordered_set, V8ObjHash, V8ObjEq> V8ObjSet; +#else + typedef hash_set, V8ObjHash, V8ObjEq> V8ObjSet; +#endif struct TBSONCTX { -- 2.7.4