Skip to content

Comments

COMP: Address compile issue with mingw#206

Open
blowekamp wants to merge 1 commit intomalaterre:masterfrom
blowekamp:fix_mingw_aligned
Open

COMP: Address compile issue with mingw#206
blowekamp wants to merge 1 commit intomalaterre:masterfrom
blowekamp:fix_mingw_aligned

Conversation

@blowekamp
Copy link
Contributor

Use _aligned_malloc with mingw compiler.

[ 58%] Building C object .../Utilities/gdcmext/mec_mr3_io.c.obj C:/ITK/Modules/ThirdParty/GDCM/src/gdcm/Utilities/gdcmext/mec_mr3_io.c: In function 'aligned_alloc_impl': C:/ITK/Modules/ThirdParty/GDCM/src/gdcm/Utilities/gdcmext/mec_mr3_io.c:320:15: error: implicit declaration of function 'posix_memalign' [-Wimplicit-function-declaration]
320 | int error = posix_memalign(&allocPtr, alignment, size);

Use _aligned_malloc with mingw compiler.

[ 58%] Building C object .../Utilities/gdcmext/mec_mr3_io.c.obj
C:/ITK/Modules/ThirdParty/GDCM/src/gdcm/Utilities/gdcmext/mec_mr3_io.c: In function 'aligned_alloc_impl':
C:/ITK/Modules/ThirdParty/GDCM/src/gdcm/Utilities/gdcmext/mec_mr3_io.c:320:15: error: implicit declaration of function 'posix_memalign' [-Wimplicit-function-declaration]
  320 |   int error = posix_memalign(&allocPtr, alignment, size);
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