win32 cross compile fix for iarray

master
leitner 13 years ago
parent c2a2a15c12
commit 2a86a4e789

@ -11,6 +11,10 @@ void iarray_init(iarray* ia,size_t elemsize) {
else
ia->bytesperpage=elemsize;
ia->elemperpage=ia->bytesperpage/elemsize;
#ifdef __MINGW32__
InitializeCriticalSection(&ia->cs);
#else
pthread_mutex_init(&ia->m,NULL);
#endif
}

Loading…
Cancel
Save