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

WIP: Fix isnan windows #101

Merged
merged 4 commits into from Dec 11, 2012
Merged

Conversation

matthew-brett
Copy link
Contributor

Use numpy includes and code fragments to make dipy compilation more portable across platforms and compilers; in particular, make dipy compile on MS Visual C++.

MSVC does not have `isnan` or `log2` defined in `math.h` - use the numpy
math header and code to provide versions that should work on all
platforms that numpy works on.
Get PI from `npy_math.h`
Linker not finding `npy_log`
to silence compiler warning
@matthew-brett
Copy link
Contributor Author

I haven't tested this one on Windows yet. Please don't merge.

@matthew-brett
Copy link
Contributor Author

Tested, works on windows, ready to merge as far as I am concerned.

@Garyfallidis
Copy link
Contributor

The idea to move definitions to dpy_math.h seems very good to me. I didn't know you had to update that information in MANIFEST with the src foulder. Thank you.

Garyfallidis added a commit that referenced this pull request Dec 11, 2012
@Garyfallidis Garyfallidis merged commit fe73945 into dipy:master Dec 11, 2012
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.

None yet

2 participants