Skip to content

Commit

Permalink
lib: fix Clang-11 compilation issue (#69)
Browse files Browse the repository at this point in the history
Fixed issue due to multiple definitions of "imb_errno".
  • Loading branch information
pablodelara committed Oct 8, 2020
1 parent fa5e056 commit 76949db
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lib/error.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
2 changes: 1 addition & 1 deletion lib/include/error.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 76949db

Please sign in to comment.