[Cython] Compilation failes if a class member is named "INFINITY"

2015-01-31 Thread Michael
Hello, if I try to compile the following minimal example: cdef class Test: cdef readonly int INFINITY cython does not complain but gcc refuses with an error message: In file included from /usr/include/math.h:38:0, from /usr/include/python2.7/pyport.h:325, f

Re: [Cython] Compilation failes if a class member is named "INFINITY"

2015-01-31 Thread Matthew Brett
Hi, On Fri, Jan 30, 2015 at 1:49 AM, Michael wrote: > Hello, > > if I try to compile the following minimal example: > > cdef class Test: > > cdef readonly int INFINITY > > cython does not complain but gcc refuses with an error message: > In file included from /usr/include/math.h:38:0, >