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

Win support #150

Merged
merged 29 commits into from
Jun 27, 2022
Merged

Win support #150

merged 29 commits into from
Jun 27, 2022

Conversation

simonrw
Copy link
Owner

@simonrw simonrw commented Jan 28, 2022

This change gets tests passing on windows msys2. It requires the following packages to be installed:

  • mingw-w64-x86_64-cfitsio
  • mingw-w64-x86_64-pkg-config
  • mingw-w64-x86_64-clang (for the bindgen feature)

The issue was that on windows, a long type is 4 bytes, rather than 8. This handily matches the 32-bit architectures,
so the conditional compilation could just be tweaked.

In a few places, the image description type had to be updated to use longs, which is what the fitsio API needs. I
was relying on a usize matching a c_long, but on windows this is not the case.

Currently tests for fitsio-sys fail on windows, but this is because the definitions were generated on unix, and do not
translate to the windows architecture.

@simonrw simonrw merged commit 095f27a into main Jun 27, 2022
@simonrw simonrw deleted the win-support branch December 21, 2022 22:28
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.

1 participant