Skip to content

Commit

Permalink
app_python3: declare global vars extern in header file
Browse files Browse the repository at this point in the history
(cherry picked from commit a771d9a)
  • Loading branch information
miconda authored and henningw committed May 13, 2020
1 parent 19fcac6 commit 2bc21c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/modules/app_python3/app_python3_mod.c
Expand Up @@ -53,6 +53,7 @@ static int child_init(int rank);
static void mod_destroy(void);

PyObject *_sr_apy_handler_obj = NULL;
PyObject *format_exc_obj = NULL;

char *dname = NULL, *bname = NULL;

Expand Down
2 changes: 1 addition & 1 deletion src/modules/app_python3/python_support.h
Expand Up @@ -25,7 +25,7 @@
#include <Python.h>
#include <stdarg.h>

PyObject *format_exc_obj;
extern PyObject *format_exc_obj;

void python_handle_exception(const char *, ...);

Expand Down

0 comments on commit 2bc21c1

Please sign in to comment.