win32 cross compile fix for iarray

master
Felix von Leitner 11 years ago
parent f3bbb827d2
commit 33e2bbfd34
  1. 4
      array/iarray_init.c

@ -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