crt: Add IMP symbols for lock/unlock_file

_lock_file & _unlock_file are always declared as __declspec(import),
causing linking programs to search for a __imp___lock_file symbol which
wasn't available

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
This commit is contained in:
Hugo Beauzée-Luyssen 2016-12-07 15:14:24 +01:00 committed by Jean-Baptiste Kempf
parent 8a6d5d945c
commit b48e3ac896

View File

@ -57,6 +57,8 @@ void __cdecl _lock_file( FILE *pf )
EnterCriticalSection( &(((_FILEX *)pf)->lock) );
}
void *__MINGW_IMP_SYMBOL(_lock_file) = _lock_file;
/***
* _unlock_file - Unlock a FILE
@ -96,3 +98,5 @@ void __cdecl _unlock_file( FILE *pf )
*/
LeaveCriticalSection( &(((_FILEX *)pf)->lock) );
}
void *__MINGW_IMP_SYMBOL(_unlock_file) = _unlock_file;