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

Fix build warning on macOS 10.11 #54

Merged
merged 3 commits into from
May 1, 2018
Merged

Conversation

jcheng5
Copy link
Member

@jcheng5 jcheng5 commented May 1, 2018

Cannot be tested using rhub::check_on_macos() because it acts like 10.12 at build time but 10.11 at runtime (!?).

jcheng5 added 2 commits May 1, 2018 10:13
incompatible pointer types passing 'const struct _ttherad_timespec *'
to parameter of type 'const struct timespec *' [-Wincompatible-pointer-types]

This was due to tinycthread emulating a struct that was already present
in macOS 10.11. I changed the conditional guarding the struct emulation
to only test for Windows, where the struct doesn't exist.
@jcheng5
Copy link
Member Author

jcheng5 commented May 1, 2018

Fixes #51 (or at least detects and errors)

@jcheng5 jcheng5 requested a review from wch May 1, 2018 17:25
@wch wch merged commit f9b5766 into master May 1, 2018
@wch wch deleted the joe/bugfix/emulated-timespec branch May 1, 2018 17:29
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