Skip to content
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

Feature - Optional compatibility with ming-win and windows #14

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

XakerTwo
Copy link
Contributor

allow compilation with ming-win, proper file reading and stdout redirect on windows

pure optional for such folks as me and can be rejected :D

issue with sys/errno.h - usual location is just errno.h (not only on windows)
issue with file reading and stdout redirect - windows text mode translation

no conflicts expected

marcos for sys/errno.h should be re-checked
freopen() - with "CON" redirection is broken and output always prints to console window; NULL is not allowed in windows
fdopen() - not works plus stdout is not assignable

so _setmode() is the only option
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant