-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
diff --git a/astropy_healpix/_core.c b/astropy_healpix/_core.c | ||
index 0a7c955..39d0dab 100644 | ||
--- a/astropy_healpix/_core.c | ||
+++ b/astropy_healpix/_core.c | ||
@@ -1,23 +1,3 @@ | ||
-/* FIXME: | ||
- * The Numpy C-API defines PyArrayDescr_Type as: | ||
- * | ||
- * #define PyArrayDescr_Type (*(PyTypeObject *)PyArray_API[3]) | ||
- * | ||
- * and then in some places we need to take its address, &PyArrayDescr_Type. | ||
- * This is fine in GCC 10 and Clang, but earlier versions of GCC complain: | ||
- * | ||
- * error: dereferencing pointer to incomplete type 'PyTypeObject' | ||
- * {aka 'struct _typeobject'} | ||
- * | ||
- * As a workaround, provide a faux forward declaration for PyTypeObject. | ||
- * See https://github.com/numpy/numpy/issues/16970. | ||
- * | ||
- * Drop this when supporting gcc < 10 becomes irrelevant. | ||
- */ | ||
-struct _typeobject { | ||
- int _placeholder; | ||
-}; | ||
- | ||
#include <Python.h> | ||
#include <numpy/arrayobject.h> | ||
#include <numpy/ufuncobject.h> | ||
-- | ||
2.42.1 |