summaryrefslogtreecommitdiff
path: root/numpy/core/setup.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/core/setup.py')
-rw-r--r--numpy/core/setup.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/numpy/core/setup.py b/numpy/core/setup.py
index c2f0e39e0..78611b5e1 100644
--- a/numpy/core/setup.py
+++ b/numpy/core/setup.py
@@ -1,6 +1,7 @@
import imp
import os
+import sys
from os.path import join
from glob import glob
from distutils.dep_util import newer,newer_group
@@ -71,7 +72,12 @@ def configuration(parent_package='',top_path=None):
moredefs.append('HAVE_ISNAN')
if config_cmd.check_func('isinf', **kws_args):
moredefs.append('HAVE_ISINF')
-
+
+ if sys.version[:3] < '2.4':
+ kws_args['headers'].append('stdlib.h')
+ if config_cmd.check_func('strtod', **kws_args):
+ moredefs.append(('PyOS_ascii_strtod', 'strtod'))
+
if moredefs:
target_f = open(target,'a')
for d in moredefs: