Browse Source

win32 cross compile fix for iarray

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

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