mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-08-19 12:50:04 +02:00
Add MSC specific code.
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user