-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for macOS #39
Conversation
812eb8c
to
3bfbd5f
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
|
b5ca3d4
to
cd51d74
Compare
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.
looks good, needs a (trivial?) rebase though
// FIXME remove this | ||
extern "C" { | ||
static stdin: *mut FILE; | ||
static stdout: *mut FILE; | ||
#[cfg_attr(target_os = "macos", link_name = "__stdinp")] | ||
static mut stdin: *mut FILE; | ||
#[cfg_attr(target_os = "macos", link_name = "__stdoutp")] | ||
static mut stdout: *mut FILE; | ||
} |
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.
yeah these are also a problem on windows, leading me to suspect that this binary was not actually cross-platform . Invalid windows paths are handled, but this would not even build on windows...
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.
In C stdin
and stdout
are macros which expand to a libc specific expression. Unfortunately the libc crate doesn't provide the definitions of these macros, so we have to manually write their expansion instead.
cd51d74
to
9999c38
Compare
No description provided.