diff options
author | David Cournapeau <cournape@gmail.com> | 2008-01-08 12:45:12 +0000 |
---|---|---|
committer | David Cournapeau <cournape@gmail.com> | 2008-01-08 12:45:12 +0000 |
commit | d3e3bbe3279d45984819fece0fdfa12f5d73aa06 (patch) | |
tree | 6554ffe9fcca68158b76898684bd4ba7f836035e | |
parent | 415d4e8fd8e01c02a1c57e566a9beb130fa80abd (diff) | |
download | numpy-d3e3bbe3279d45984819fece0fdfa12f5d73aa06.tar.gz |
Add PyOS_ascii_strtod test for automatic config header generation
-rw-r--r-- | numpy/core/SConstruct | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/numpy/core/SConstruct b/numpy/core/SConstruct index c4c3e528e..3eac5c081 100644 --- a/numpy/core/SConstruct +++ b/numpy/core/SConstruct @@ -110,6 +110,13 @@ for f in mfuncs[1:]: #------------------------------------------------------- # Define the function PyOS_ascii_strod if not available #------------------------------------------------------- +if not config.CheckDeclaration('PyOS_ascii_strtod', + includes = "#include <Python.h>"): + if config.CheckFunc('strtod'): + config.Define('PyOS_ascii_strtod', 'strtod', + "Define to a function to use as a replacement for "\ + "PyOS_ascii_strtod if not available in python header") + # XXX: would be better to check for PyOS_ascii_strod instead of version if sys.version[:3] < '2.4': if config.CheckFunc('strtod'): |