Skip to content

Commit

Permalink
Update mdb.c
Browse files Browse the repository at this point in the history
  • Loading branch information
xmoreee committed May 23, 2018
1 parent 28e4a62 commit f750a5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions external/db_drivers/liblmdb/mdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1595,7 +1595,7 @@ mdb_strerror(int err)
* If this happens to be a problem,
* make it global var and free in the destructor of a global obj instance.
*/
static __declspec(thread) (char*) ptr = NULL;
static __declspec(thread) char* ptr = NULL;
#else
need proper RETLOCALVARPT_SOLUTION setting.
#endif
Expand Down Expand Up @@ -1627,7 +1627,7 @@ mdb_strerror(int err)
default:
;
}
#elif RETLOCALVARPT_SOLUTION == RETLOCALVARPTR_HEAVILYTHREADEDAPP
#if RETLOCALVARPT_SOLUTION == RETLOCALVARPTR_HEAVILYTHREADEDAPP
if (!ptr) ptr = malloc(MSGSIZE);
if (!ptr) return "MDB_CANNOT_PRTINT_ERR: No mem."
#endif
Expand Down

0 comments on commit f750a5a

Please sign in to comment.