Commit 207a73e
COMP: Patch HDF5 compilation issue with mingw and _Float16
This is change is pulled from commit
b09008ea0379e7b113ffdde4402860ba467ace13 upstream.
Define __STDC_WANT_IEC_60559_TYPES_EXT__ before including other headers (InsightSoftwareConsortium#5356)
Some standard headers might implicitly include `float.h`. If that happens
before `__STDC_WANT_IEC_60559_TYPES_EXT__` is defined, the macros that
are needed for the `_Float16` data type (like `FLT16_MAX`) might not be
defined.
That is happening with mingw-w64 headers since the following change: mingw-w64/mingw-w64@b40b6a0
Define `__STDC_WANT_IEC_60559_TYPES_EXT__` before including other headers
in `H5private.h` to make that scenario less likely.1 parent 31fd9a2 commit 207a73e
File tree
2 files changed
+5
-9
lines changed- Modules/ThirdParty/HDF5/src
- itkhdf5/src
2 files changed
+5
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | 194 | | |
201 | 195 | | |
202 | 196 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
23 | 28 | | |
24 | 29 | | |
25 | 30 | | |
| |||
33 | 38 | | |
34 | 39 | | |
35 | 40 | | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | 41 | | |
40 | 42 | | |
41 | 43 | | |
| |||
0 commit comments