Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Added stdc.stdlib import for win32 to fix compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
complexmath committed Feb 3, 2011
1 parent 1449d7b commit 80617e4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/core/thread.d
Expand Up @@ -127,8 +127,9 @@ version( Windows )
private
{
import core.stdc.stdint : uintptr_t; // for _beginthreadex decl below
import core.stdc.stdlib; // for malloc
import core.sys.windows.windows;
import core.thread_helper; // for OpenThreadHandle
import core.thread_helper; // for OpenThreadHandle

const DWORD TLS_OUT_OF_INDEXES = 0xFFFFFFFF;

Expand Down Expand Up @@ -238,11 +239,12 @@ else version( Posix )
{
private
{
import core.stdc.errno;
import core.sys.posix.semaphore;
import core.sys.posix.stdlib; // for malloc, valloc, free
import core.sys.posix.pthread;
import core.sys.posix.signal;
import core.sys.posix.time;
import core.stdc.errno;

extern (C) int getErrno();

Expand Down Expand Up @@ -2805,7 +2807,6 @@ private
{
import core.sys.posix.unistd; // for sysconf
import core.sys.posix.sys.mman; // for mmap
import core.sys.posix.stdlib; // for malloc, valloc, free

version( AsmX86_Win32 ) {} else
version( AsmX86_Posix ) {} else
Expand Down

0 comments on commit 80617e4

Please sign in to comment.