Skip to content

Qualify ptr to fix Windows build regression #174

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

Closed
wants to merge 1 commit into from

Conversation

EliahKagan
Copy link

Fixes #173

Since signal-hook-registry version 1.4.4, ptr is used unqualified. This works on Unix-like systems, but as shown in #173, it is not found on Windows. Qualifying it as core::ptr works.

This restores the ability to build on Windows.

This fixes vorner#173 in `signal-hook-registry`. Since version 1.4.4,
`ptr` is used unqualified. This works on Unix-like systems, but it
is not found on Windows. Qualifying it as `core::ptr` works.
vorner added a commit that referenced this pull request Apr 20, 2025
Fix Windows build.

 #174.
@vorner
Copy link
Owner

vorner commented Apr 20, 2025

Thank you. Though, I've fixed in somewhat different way.

@vorner vorner closed this Apr 20, 2025
@EliahKagan EliahKagan deleted the fix-173 branch April 20, 2025 16:30
@EliahKagan
Copy link
Author

Thanks! The change you made in f31d712 is actually much better than what I had suggested here. I'm not sure why I didn't notice that the problem was caused by the import being conditional.

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.

Compilation error on Windows
2 participants