Anatoly A. Kazantsev wrote:
> In foo.h somebody wrote:
>
> #define BAR 1
>
> than I want to define module constant with same name and value:
>
> cdef export from "foo.h":
> typedef enum:
> _BAR "BAR"
You can just use
cdef extern from "foo.h":
cdef int BAR
Stefan