Add __eq__ to enum type

If a function declaration contained an enum, there were
false warnings regarding the function signature when the
pxd file was compiled with Cython (the warnings don't
appear if the pxd file gets cimported in a pyx file).

The warning is:
Function signature does not match previous declaration

It can be tested manually with a pxd file with the following
contents:

cdef extern from *:
    ctypedef enum MyEnum:
        Value1

    MyEnum f()