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

Changes to get crosscompile working #2

Open
wants to merge 2 commits into
base: audacity-fixes
Choose a base branch
from

Conversation

walisser
Copy link

Typo in configure.in fixed and use errno instead of doserrno, the former is more compatible (no msvc dependency).

get_doserrno relies on crt100, mingw probably doesnt want to use
that (though it can). Expect it will map to the desired crt
when using VC++
@JamesCrook
Copy link

Great. I like this. I intend to accept/merge it after Audacity 2.1.3 is released.

@@ -1185,15 +1185,14 @@ wxRenameFile(const wxString& file1, const wxString& file2, bool overwrite)
// For explanation, see: (warning...based mostly on observed behavior)
// http://bugzilla.audacityteam.org/show_bug.cgi?id=1266
// https://github.com/audacity/audacity/pull/94
unsigned long doserrno = 0;
errno = 0;
Copy link

@carlo-bramini carlo-bramini Jul 26, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does not seems possible to me, errno is a macro, not a variable.
The code should be probably changed to:
_set_errno(0)
See:
https://docs.microsoft.com/en-us/cpp/c-runtime-library/errno-doserrno-sys-errlist-and-sys-nerr?view=vs-2019

EDIT: this line should probably moved to line 1191, before calling wxRename(), since errno does not get cleared on success.

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.

3 participants