Move additional #include inside IN_LLVM section.

This commit is contained in:
kai
2012-03-25 15:19:25 +02:00
parent 2433b74460
commit 0a9ba4d283
2 changed files with 13 additions and 7 deletions

View File

@@ -12,12 +12,6 @@
#include <stdlib.h>
#include <assert.h>
#if linux || __APPLE__ || __FreeBSD__ || __HAIKU__ || __sun&&__SVR4
#include <pthread.h> // Needs pthread_mutex_t for os_critsecsize
#elif _WIN32
#include <windows.h>
#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 <pthread.h> // Needs pthread_mutex_t for os_critsecsize
#elif _WIN32
#include <windows.h>
#endif
// sizes based on those from tollvm.cpp:DtoMutexType()
int os_critsecsize()
{

View File

@@ -29,8 +29,13 @@
#include "template.h"
#include "attrib.h"
#include <pthread.h>
#if IN_LLVM
#if defined(_MSC_VER)
#include <windows.h>
#else
#include <pthread.h>
#endif
// sizes based on those from tollvm.cpp:DtoMutexType()
int os_critsecsize()
{