From 024e5d5797733c83b22a6f1101b3e775b04eb6ca Mon Sep 17 00:00:00 2001 From: Mark Zealey Date: Thu, 8 Jun 2017 15:22:58 +0000 Subject: [PATCH] Extern integer definitions in the header file Integers are defined in both the .c and the common.h file leading to linking issues with the library when used externally and potentially causing issues within the code as well. --- source/common.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/common.h b/source/common.h index 1df0627..58fd9c7 100644 --- a/source/common.h +++ b/source/common.h @@ -86,9 +86,9 @@ typedef struct dyn_int_array_s dyn_int_array_t; #define FILENAME_BUFFER_SIZE 128 -int setup_error; -int module_setup; -int DEBUG; +extern int setup_error; +extern int module_setup; +extern int DEBUG; int get_xio_base(void); int is_this_chippro(void);