Permalink
Browse files

fix so patch is applied correctly.

  • Loading branch information...
teoliphant committed Jan 22, 2006
1 parent 6718010 commit c79bcec14a12a38a1563d1189324257e5df71397
Showing with 1 addition and 5 deletions.
  1. +1 −5 numpy/core/src/arraytypes.inc.src
@@ -760,7 +760,6 @@ static int
#func=(l,ul)*5#
#btype=(long,ulong)*5#
*/
-#if (PY_VERSION_HEX >= 0x02040000) || defined(PyOS_ascii_strtod)
static int
@fname@_fromstr(char *str, @type@ *ip, char **endptr, void *ignore)
{
@@ -770,16 +769,13 @@ static int
*ip = (@type@) result;
return 0;
}
-#else
-#define @fname@_fromstr NULL
-#endif
/**end repeat**/
/**begin repeat
#fname=FLOAT,DOUBLE,LONGDOUBLE#
#type=float,double,longdouble#
*/
-#if PY_VERSION_HEX >= 0x02040000
+#if (PY_VERSION_HEX >= 0x02040000) || defined(PyOS_ascii_strtod)
static int
@fname@_fromstr(char *str, @type@ *ip, char **endptr, void *ignore)
{

0 comments on commit c79bcec

Please sign in to comment.