_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
---
mingw-w64-crt/stdio/mingw_lock.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/mingw-w64-crt/stdio/mingw_lock.c b/mingw-w64-crt/stdio/mingw_lock.c
index fe31780..aaa9223 100644
--- a/mingw-w64-crt/stdio/mingw_lock.c
+++ b/mingw-w64-crt/stdio/mingw_lock.c
@@ -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;
--
2.10.2
------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/xeonphi
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public