mirror of
https://git.code.sf.net/p/mingw-w64/mingw-w64
synced 2024-11-27 11:54:24 +08:00
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:
parent
8a6d5d945c
commit
b48e3ac896
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user