win32 cross compile fix for iarray
This commit is contained in:
parent
c2a2a15c12
commit
2a86a4e789
@ -11,6 +11,10 @@ void iarray_init(iarray* ia,size_t elemsize) {
|
|||||||
else
|
else
|
||||||
ia->bytesperpage=elemsize;
|
ia->bytesperpage=elemsize;
|
||||||
ia->elemperpage=ia->bytesperpage/elemsize;
|
ia->elemperpage=ia->bytesperpage/elemsize;
|
||||||
|
#ifdef __MINGW32__
|
||||||
|
InitializeCriticalSection(&ia->cs);
|
||||||
|
#else
|
||||||
pthread_mutex_init(&ia->m,NULL);
|
pthread_mutex_init(&ia->m,NULL);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user