-
-
Notifications
You must be signed in to change notification settings - Fork 411
Add two Bionic declarations #1972
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -59,12 +59,12 @@ else version (FreeBSD) | |
| alias errno = __error; | ||
| } | ||
| } | ||
| else version (linux) | ||
| else version (CRuntime_Bionic) | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| { | ||
| extern (C) | ||
| { | ||
| ref int __errno_location(); | ||
| alias errno = __errno_location; | ||
| ref int __errno(); | ||
| alias errno = __errno; | ||
| } | ||
| } | ||
| else version (Darwin) | ||
|
|
@@ -75,14 +75,6 @@ else version (Darwin) | |
| alias errno = __error; | ||
| } | ||
| } | ||
| else version (OSX) | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The |
||
| { | ||
| extern (C) | ||
| { | ||
| ref int __error(); | ||
| alias errno = __error; | ||
| } | ||
| } | ||
| else | ||
| { | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. One thing I noticed is if I tried to go back to this old default block by making sure none of the above versions hit, I got an error in |
||
| /// | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kinke, need this for the final 1.6 release to build for Android, don't know if ldc itself needs to be patched in any way to call this
__assertwith the right arguments forbetterC.Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It does need to be patched as it currently assumes the Glibc signature on Linux. Can't believe they opted for shuffling around the args.