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
commitf204210aee0748f5183c6f0c853be89266f4a651 (patch)
tree6c44a0fb330344b8b140fd3652c4902e24fde715 /python
parente974e1dd835bd7995dca720bba1ce0ab09f6fe54 (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(