diff --git a/dmd2/statement.c b/dmd2/statement.c index 4dd913a7..7b5a4421 100644 --- a/dmd2/statement.c +++ b/dmd2/statement.c @@ -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