Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

stinos
Copy link
Contributor

@stinos stinos commented Jul 25, 2016

When compiling with msys2's gcc there's no need to apply the binary fmode
so adjust the Makefile to reflect that.
When compiling with mingw we need to include malloc.h since there is no
alloca.h, and the 64bit detection in mpconfigport.h needs some adjustment.

Note I don't know if the detection in the Makefile is ok when using cross-compilation for windows from a linux machine or when running wine. A better way might be to test the output of $(CC) -dumpmachine, but that would likely fail when using clang instead of gcc?

When compiling with msys2's gcc there's no need to apply the binary fmode
so adjust the Makefile to reflect that.
When compiling with mingw we need to include malloc.h since there is no
alloca.h, and the 64bit detection in mpconfigport.h needs some adjustment.
stinos referenced this pull request Jul 25, 2016
… windows

This is a fix for #2209:
by default a file created using open() uses text translation mode so writing
\n to it will result in the file having \r\n. This is obviously problematic
for binary .mpy files, so provide functions for setting the open mode
and use binary mode in mpy-cross' main().
@pfalcon
Copy link
Contributor

pfalcon commented Jul 30, 2016

Merged, thanks!

@stinos stinos deleted the mpy-cross-windows branch November 3, 2016 12:55
tannewt pushed a commit to tannewt/circuitpython that referenced this pull request Nov 16, 2019
cpb: Disable the onboard speaker until request
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.

2 participants