Skip to content

Commit

Permalink
Add extern in header files (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
caspervdw authored and jorisvandenbossche committed Nov 15, 2019
1 parent 851e92d commit 66518bb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/geos.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@
/* This declares a global GEOS Context */
extern void *geos_context[1];

int init_geos(PyObject *m);
extern int init_geos(PyObject *m);

#endif
6 changes: 3 additions & 3 deletions src/pygeom.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ typedef struct {
} GeometryObject;


PyTypeObject GeometryType;
extern PyTypeObject GeometryType;

/* Initializes a new geometry object */
PyObject *GeometryObject_FromGEOS(PyTypeObject *type, GEOSGeometry *ptr);
extern PyObject *GeometryObject_FromGEOS(PyTypeObject *type, GEOSGeometry *ptr);
/* Get a GEOSGeometry from a GeometryObject */
extern char get_geom(GeometryObject *obj, GEOSGeometry **out);

int init_geom_type(PyObject *m);
extern int init_geom_type(PyObject *m);

#endif
2 changes: 1 addition & 1 deletion src/ufuncs.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
#include <Python.h>


int init_ufuncs(PyObject *m, PyObject *d);
extern int init_ufuncs(PyObject *m, PyObject *d);

#endif

0 comments on commit 66518bb

Please sign in to comment.