From 0a9ba4d2831f6be452e831549c7a6de2a06cbcf1 Mon Sep 17 00:00:00 2001 From: kai Date: Sun, 25 Mar 2012 15:19:25 +0200 Subject: [PATCH] Move additional #include inside IN_LLVM section. --- dmd/statement.c | 13 +++++++------ dmd2/statement.c | 7 ++++++- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/dmd/statement.c b/dmd/statement.c index bd70df1a..3219b56b 100644 --- a/dmd/statement.c +++ b/dmd/statement.c @@ -12,12 +12,6 @@ #include #include -#if linux || __APPLE__ || __FreeBSD__ || __HAIKU__ || __sun&&__SVR4 -#include // Needs pthread_mutex_t for os_critsecsize -#elif _WIN32 -#include -#endif - #include "rmem.h" #include "statement.h" @@ -39,6 +33,13 @@ * Return size of OS critical section. */ #if IN_LLVM + +#if linux || __APPLE__ || __FreeBSD__ || __HAIKU__ || __sun&&__SVR4 +#include // Needs pthread_mutex_t for os_critsecsize +#elif _WIN32 +#include +#endif + // sizes based on those from tollvm.cpp:DtoMutexType() int os_critsecsize() { diff --git a/dmd2/statement.c b/dmd2/statement.c index 7b5a4421..61aca6d4 100644 --- a/dmd2/statement.c +++ b/dmd2/statement.c @@ -29,8 +29,13 @@ #include "template.h" #include "attrib.h" -#include #if IN_LLVM +#if defined(_MSC_VER) +#include +#else +#include +#endif + // sizes based on those from tollvm.cpp:DtoMutexType() int os_critsecsize() {