Skip to content

Commit

Permalink
Revert "Avoid redefining _typeobject when using PyPy since PyPy inclu…
Browse files Browse the repository at this point in the history
…des its own definition"

This reverts commit 830927b.
  • Loading branch information
astrofrog committed Oct 18, 2023
1 parent ae0df83 commit 2002c34
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions erfa/ufunc.c.templ
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,9 @@
// As mentioned in https://github.com/numpy/numpy/issues/16970,
// the workaround is to define a fake _typeobject struct.

#ifndef PYPY_VERSION
typedef struct _typeobject {
struct _typeobject {
int dummy;
};
#endif

#define MODULE_DOCSTRING \
"Ufunc wrappers of the ERFA routines.\n\n" \
Expand Down

0 comments on commit 2002c34

Please sign in to comment.