Commit 51173f45 authored by Michael Tremer's avatar Michael Tremer

python: Avoid declaring loc_ctx multiple times

Signed-off-by: default avatarMichael Tremer <michael.tremer@ipfire.org>
parent bca87342
......@@ -23,6 +23,9 @@
#include "network.h"
#include "writer.h"
/* Declare global context */
struct loc_ctx* loc_ctx;
PyMODINIT_FUNC PyInit_location(void);
static void location_free(void) {
......
......@@ -20,6 +20,6 @@
#include <loc/libloc.h>
#include <loc/as.h>
struct loc_ctx* loc_ctx;
extern struct loc_ctx* loc_ctx;
#endif /* PYTHON_LOCATION_MODULE_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment