From: adam Date: Tue, 30 Apr 2013 13:36:50 +0000 (+0700) Subject: #61 X-Git-Tag: v1.2.12~318 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5c46f2d5237ff032dff628c3c1986819187762de;p=platform%2Fupstream%2Fejdb.git #61 --- 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 {