Skip to content

Commit

Permalink
Test with unordered_map
Browse files Browse the repository at this point in the history
  • Loading branch information
skomski committed Apr 15, 2012
1 parent 0594727 commit 336bb52
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/curl_multi_wrapper.h
Expand Up @@ -3,7 +3,7 @@
#ifndef SRC_CURL_MULTI_WRAPPER_H_
#define SRC_CURL_MULTI_WRAPPER_H_

#include <map>
#include <unordered_map>

#include "curl/curl.h"
#include "node.h"
Expand All @@ -17,7 +17,7 @@ namespace nodecurl {
static void Initialize(v8::Handle<v8::Object> target);

private:
typedef std::map<curl_socket_t, ev_io> SockFDs;
typedef std::unordered_map<curl_socket_t, ev_io> SockFDs;

CurlMultiWrapper();
~CurlMultiWrapper();
Expand Down
6 changes: 4 additions & 2 deletions wscript
Expand Up @@ -4,7 +4,6 @@ def set_options(opt):
def configure(conf):
conf.check_tool('compiler_cxx')
conf.check_tool('node_addon')
conf.env.append_unique('CXXFLAGS', ['-Wall', '-O3', '-DNDEBUG'])
if not conf.check_cfg(package='libcurl', args='--cflags --libs', uselib_store='CURL'):
if not conf.check(lib="curl", uselib_store="CURL"):
conf.fatal('Missing libcurl');
Expand All @@ -14,7 +13,10 @@ def build(bld):
obj.cxxflags = [
'-Wall',
'-D_FILE_OFFSET_BITS=64',
'-D_LARGEFILE_SOURCE'
'-D_LARGEFILE_SOURCE',
'-std=c++11',
'-O3',
'-DNDEBUG'
]
obj.target = 'addon'
obj.source = [
Expand Down

0 comments on commit 336bb52

Please sign in to comment.