[Thuban-commits] r2706 - trunk/thuban/libraries/pyshapelib

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Sun Sep 24 21:25:26 CEST 2006


Author: bernhard
Date: 2006-09-24 21:25:26 +0200 (Sun, 24 Sep 2006)
New Revision: 2706

Modified:
   trunk/thuban/libraries/pyshapelib/ChangeLog
   trunk/thuban/libraries/pyshapelib/dbflib_wrap.c
Log:
* dbflib_wrap.c, README: Checked for python version >= 2.4.0a0
before using &PyOS_ascii_atof.


Modified: trunk/thuban/libraries/pyshapelib/ChangeLog
===================================================================
--- trunk/thuban/libraries/pyshapelib/ChangeLog	2006-09-24 18:55:30 UTC (rev 2705)
+++ trunk/thuban/libraries/pyshapelib/ChangeLog	2006-09-24 19:25:26 UTC (rev 2706)
@@ -1,5 +1,10 @@
 2006-09-24  Bernhard Reiter  <bernhard at intevation.de>
 
+	* dbflib_wrap.c, README: Checked for python version >= 2.4.0a0
+	before using &PyOS_ascii_atof.
+
+2006-09-24  Bernhard Reiter  <bernhard at intevation.de>
+
 	Added dirty workaround to make dbflib agnostic 
 	against decimal_poinst != ".\0".
 

Modified: trunk/thuban/libraries/pyshapelib/dbflib_wrap.c
===================================================================
--- trunk/thuban/libraries/pyshapelib/dbflib_wrap.c	2006-09-24 18:55:30 UTC (rev 2705)
+++ trunk/thuban/libraries/pyshapelib/dbflib_wrap.c	2006-09-24 19:25:26 UTC (rev 2706)
@@ -1419,11 +1419,13 @@
     }
     SWIG_InstallConstants(d,swig_const_table);
 
+#   if PY_VERSION_HEX >=0x02040000 
     /* because we are in a python module now, we can give out
      * pointers to python's locale agonistic function 
      * XXX this clearly is a hack
      */
     DBFSetatof_function(&PyOS_ascii_atof);
+#   endif
 
 }
 



More information about the Thuban-commits mailing list