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()
int os_critsecsize()
{
if (global.params.os == OSWindows)
return 68;
else if (global.params.os == OSFreeBSD)
return sizeof(size_t);
else
return sizeof(pthread_mutex_t);
#if defined(_MSC_VER)
// TODO Check size
return 68;
#else
if (global.params.os == OSWindows)
return 68;
else if (global.params.os == OSFreeBSD)
return sizeof(size_t);
else
return sizeof(pthread_mutex_t);
#endif
}
#elif IN_DMD