Merge pull request #1916 from c1728p9/fix_gcc

Fix GCC malloc lock
pull/1917/head
Martin Kojtal 2016-06-13 16:17:02 +02:00 committed by GitHub
commit 89c1bef1b1
1 changed files with 4 additions and 4 deletions

View File

@ -646,22 +646,22 @@ extern "C" WEAK void __rtos_malloc_unlock( struct _reent *_r ) {}
extern "C" WEAK void __rtos_env_lock( struct _reent *_r ) {}
extern "C" WEAK void __rtos_env_unlock( struct _reent *_r ) {}
void __malloc_lock( struct _reent *_r )
extern "C" void __malloc_lock( struct _reent *_r )
{
__rtos_malloc_lock(_r);
}
void __malloc_unlock( struct _reent *_r )
extern "C" void __malloc_unlock( struct _reent *_r )
{
__rtos_malloc_unlock(_r);
}
void __env_lock( struct _reent *_r )
extern "C" void __env_lock( struct _reent *_r )
{
__rtos_env_lock(_r);
}
void __env_unlock( struct _reent *_r )
extern "C" void __env_unlock( struct _reent *_r )
{
__rtos_env_unlock(_r);
}