4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-01-18 20:39:33 +08:00

Re-enable malloc_lock for newlib-nano

Re-enable the use of __malloc_lock and __malloc_unlock newlib-nano, tied
the newlib-multithread.
This commit is contained in:
Andre Vieira (lists) 2016-06-16 12:23:51 +01:00 committed by Corinna Vinschen
parent 747b3f44e3
commit 2665915cfc

View File

@ -58,9 +58,8 @@
#define RCALL reent_ptr,
#define RONECALL reent_ptr
/* Disable MALLOC_LOCK so far. So it won't be thread safe */
#define MALLOC_LOCK /*__malloc_lock(reent_ptr) */
#define MALLOC_UNLOCK /*__malloc_unlock(reent_ptr) */
#define MALLOC_LOCK __malloc_lock(reent_ptr)
#define MALLOC_UNLOCK __malloc_unlock(reent_ptr)
#define RERRNO reent_ptr->_errno