Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
lpsinger committed Apr 26, 2024
1 parent 73ef498 commit 2cfdb4d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lib/hpx/_core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,17 @@
#include <CGAL/Origin.h>
#include <CGAL/surface_neighbor_coordinates_3.h>

/* PyModule_AddObjectRef was added in Python 3.10. */
#define PyModule_AddObjectRef_VERSION 0x030a0000
#if PY_VERSION_HEX < PyModule_AddObjectRef_VERSION || (defined(Py_LIMITED_API) && Py_LIMITED_API+0 < PyModule_AddObjectRef_VERSION)
static int PyModule_AddObjectRef(PyObject *mod, const char *name, PyObject *value) {
int result = PyModule_AddObject(mod, name, value);
Py_XDECREF(value);
return result;
}
#endif


typedef CGAL::Exact_predicates_inexact_constructions_kernel Kernel;
typedef CGAL::Delaunay_triangulation_3<Kernel, CGAL::Fast_location> Delaunay;
typedef Kernel::Point_3 Point;
Expand Down

0 comments on commit 2cfdb4d

Please sign in to comment.