summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorChris Dyer <cdyer@allegro.clab.cs.cmu.edu>2013-11-10 01:46:28 -0500
committerChris Dyer <cdyer@allegro.clab.cs.cmu.edu>2013-11-10 01:46:28 -0500
commit1e9afb904a57ff0b03edd0e94d634ef98e7d4b2a (patch)
tree24aef25a92bbef43224c6c4c8a082d0256b70640 /python
parentda179c9cbe92d93c5e7bfb1dbe1b3bec2c7791b9 (diff)
fix for c++11
Diffstat (limited to 'python')
-rw-r--r--python/cdec/sa/strmap.cc2
-rw-r--r--python/setup.py.in3
2 files changed, 3 insertions, 2 deletions
diff --git a/python/cdec/sa/strmap.cc b/python/cdec/sa/strmap.cc
index d7c4f2a3..b6debfb0 100644
--- a/python/cdec/sa/strmap.cc
+++ b/python/cdec/sa/strmap.cc
@@ -4,7 +4,7 @@
#include <string>
#include <cstdint>
-#ifdef HAVE_CXX11
+#ifndef HAVE_OLD_CPP
# include <unordered_map>
#else
# include <tr1/unordered_map>
diff --git a/python/setup.py.in b/python/setup.py.in
index ce1eb2ed..8ed0b100 100644
--- a/python/setup.py.in
+++ b/python/setup.py.in
@@ -21,7 +21,8 @@ ext_modules = [
extra_compile_args=CPPFLAGS,
extra_link_args=LDFLAGS),
Extension(name='cdec.sa._sa',
- sources=['cdec/sa/_sa.c', 'cdec/sa/strmap.cc'])
+ sources=['cdec/sa/_sa.c', 'cdec/sa/strmap.cc'],
+ extra_compile_args=CPPFLAGS)
]
setup(