From 41cfeb53f4afb0fae9ac198e373c186ba18f02a8 Mon Sep 17 00:00:00 2001 From: Hugh McMaster Date: Mon, 28 Mar 2022 11:16:05 +1100 Subject: [PATCH] Fix build failure with GCC 10 --- configuration.c | 2 ++ configuration.h | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/configuration.c b/configuration.c index ab46700..0633ce3 100644 --- a/configuration.c +++ b/configuration.c @@ -33,6 +33,8 @@ #include "listhandler.h" #include "memory.h" +cpmconfig_t* config; +cpmruntime_t* runtime; /* ############################################################################# * diff --git a/configuration.h b/configuration.h index b539e30..a14f851 100644 --- a/configuration.h +++ b/configuration.h @@ -101,8 +101,8 @@ typedef struct /* ############################################################################# * global variables */ -cpmconfig_t* config; -cpmruntime_t* runtime; +extern cpmconfig_t* config; +extern cpmruntime_t* runtime; #define CRACKLIB_OFF 0 #define CRACKLIB_ON 1