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

[C] Fixes for Windows - Take 2 #794

Merged
merged 5 commits into from
Dec 19, 2019

Conversation

ltrzesniewski
Copy link
Contributor

This is the same as #789 (which got reverted) but with two commits removed. It fixes the build and unit tests on Windows.

I'll implement changes discussed here (DllMain) as a separate PR, as I feel the implementation may require more discussion, so it won't be cluttered by these changes.

These functions are expected to return a value between 0 and 1
but were returning a value between 0 and RAND_MAX.
RAND_MAX + 1 is known not to overflow on MSVC.
The callback does not have the correct signature which is expected
by the InitOnceExecuteOnce function.
CMake v3.13 no longer includes the /FC option which makes __FILE__
lower case and absolute. This adjusts the unit test.test

See https://gitlab.kitware.com/cmake/cmake/issues/18261
@tmontgomery
Copy link
Contributor

Thanks! Will merge after checks done.

@tmontgomery tmontgomery merged commit f0f0d53 into real-logic:master Dec 19, 2019
@ltrzesniewski ltrzesniewski deleted the windows-fixes branch December 19, 2019 21:14
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