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