Add MSC specific code.

This commit is contained in:
kai
2012-03-22 21:01:07 +01:00
parent df61269ada
commit 4616b068c8

View File

@@ -34,12 +34,17 @@
// sizes based on those from tollvm.cpp:DtoMutexType() // sizes based on those from tollvm.cpp:DtoMutexType()
int os_critsecsize() int os_critsecsize()
{ {
if (global.params.os == OSWindows) #if defined(_MSC_VER)
return 68; // TODO Check size
else if (global.params.os == OSFreeBSD) return 68;
return sizeof(size_t); #else
else if (global.params.os == OSWindows)
return sizeof(pthread_mutex_t); return 68;
else if (global.params.os == OSFreeBSD)
return sizeof(size_t);
else
return sizeof(pthread_mutex_t);
#endif
} }
#elif IN_DMD #elif IN_DMD