From 76949db432c7e7f09d68b5e55c27e3636e0564aa Mon Sep 17 00:00:00 2001 From: Pablo de Lara Date: Wed, 7 Oct 2020 18:59:09 +0000 Subject: [PATCH] lib: fix Clang-11 compilation issue (#69) Fixed issue due to multiple definitions of "imb_errno". --- lib/error.c | 2 ++ lib/include/error.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/error.c b/lib/error.c index f56e5516..f837e912 100644 --- a/lib/error.c +++ b/lib/error.c @@ -39,6 +39,8 @@ #pragma warning(disable : 4996) #endif +IMB_DLL_LOCAL int imb_errno; + int imb_get_errno(IMB_MGR *mb_mgr) { /* try get IMB_MGR error status first */ diff --git a/lib/include/error.h b/lib/include/error.h index 1f0e7733..cd9e9b90 100644 --- a/lib/include/error.h +++ b/lib/include/error.h @@ -32,7 +32,7 @@ * declare global variable to store * process wide error status */ -IMB_DLL_LOCAL int imb_errno; +extern int imb_errno; /** * @brief API to set error status