Skip to content

use isnan instead of _fpclass on non-MSVC compilers#2305

Merged
WardF merged 1 commit intoUnidata:mainfrom
Alexander-Barth:isnan-mingw32
May 17, 2022
Merged

use isnan instead of _fpclass on non-MSVC compilers#2305
WardF merged 1 commit intoUnidata:mainfrom
Alexander-Barth:isnan-mingw32

Conversation

@Alexander-Barth
Copy link
Copy Markdown
Contributor

This PR solves issue #2302.

@DennisHeimbigner
Copy link
Copy Markdown
Collaborator

Good catch.
Alternative might be #if defined _WIN32 && ! defined MINGW64

@Alexander-Barth
Copy link
Copy Markdown
Contributor Author

Alexander-Barth commented Apr 25, 2022

Alternative might be #if defined _WIN32 && ! defined MINGW64

Yes, that would work too. [In this PR I preferred to privilege the isnan code path as default (for non-MSVC compiler) as the isnan function is part of the C99.]

@WardF WardF added this to the 4.9.0 milestone May 17, 2022
@WardF WardF merged commit 326bdc4 into Unidata:main May 17, 2022
@Alexander-Barth Alexander-Barth deleted the isnan-mingw32 branch May 18, 2022 06:22
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.

3 participants