-
-
Notifications
You must be signed in to change notification settings - Fork 673
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
COMP: Fix older gcc build error including "cstddef" for "ptrdiff_t"
This commit fixes a regression likely introduced in c173dfd (STYLE: Remove `std::` prefix from types that work without it) to support building ITK wheels using manylinux_2_24 providing gcc 6.3. It fixes build error like the following: In file included from /work/ITK-source/ITK/Modules/Core/Common/include/itkImageRegion.h:33:0, from /work/ITK-source/ITK/Modules/Core/Common/include/itkMultiThreaderBase.h:35, from /work/ITK-source/ITK/Modules/Core/Common/src/itkTotalProgressReporter.cxx:19: /work/ITK-source/ITK/Modules/Core/Common/include/itkSize.h:242:27: error: ‘ptrdiff_t’ does not name a type using difference_type = ptrdiff_t; ^~~~~~~~~
- Loading branch information
Showing
5 changed files
with
7 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,8 @@ | |
#include "itkSize.h" | ||
#include "itkMath.h" | ||
|
||
#include <cstddef> // For ptrdiff_t. | ||
|
||
namespace itk | ||
{ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters