[Numpy-svn] r4707 - branches/build_with_scons/numpy/core
numpy-svn at scipy.org
numpy-svn at scipy.org
Tue Jan 8 07:45:16 EST 2008
Author: cdavid
Date: 2008-01-08 06:45:12 -0600 (Tue, 08 Jan 2008)
New Revision: 4707
Modified:
branches/build_with_scons/numpy/core/SConstruct
Log:
Add PyOS_ascii_strtod test for automatic config header generation
Modified: branches/build_with_scons/numpy/core/SConstruct
===================================================================
--- branches/build_with_scons/numpy/core/SConstruct 2008-01-08 12:18:46 UTC (rev 4706)
+++ branches/build_with_scons/numpy/core/SConstruct 2008-01-08 12:45:12 UTC (rev 4707)
@@ -110,6 +110,13 @@
#-------------------------------------------------------
# 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'):
More information about the Numpy-svn
mailing list