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

Commit

Permalink
Add Bionic __error and remove redundant OSX declaration.
Browse files Browse the repository at this point in the history
  • Loading branch information
joakim-noah committed Nov 18, 2017
1 parent d748943 commit 0e7f124
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions src/core/stdc/errno.d
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,12 @@ else version (FreeBSD)
alias errno = __error;
}
}
else version (linux)
else version (CRuntime_Bionic)
{
extern (C)
{
ref int __errno_location();
alias errno = __errno_location;
ref int __errno();
alias errno = __errno;
}
}
else version (Darwin)
Expand All @@ -75,14 +75,6 @@ else version (Darwin)
alias errno = __error;
}
}
else version (OSX)
{
extern (C)
{
ref int __error();
alias errno = __error;
}
}
else
{
///
Expand Down

0 comments on commit 0e7f124

Please sign in to comment.