Skip to content

Commit

Permalink
Added comment about workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
astrofrog committed Sep 24, 2023
1 parent 36bcee0 commit 3460592
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions erfa/ufunc.c.templ
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@
#include "erfa.h"
#include "erfaextra.h"

// On gcc<10 we can run into the following:
//
// error: dereferencing pointer to incomplete type 'PyTypeObject'
//
// As mentioned in https://github.com/numpy/numpy/issues/16970,
// the workaround is to define a fake _typeobject struct.

struct _typeobject {
int dummy;
};
Expand Down

0 comments on commit 3460592

Please sign in to comment.