Skip to content

Commit

Permalink
Merge pull request #4632 from thewtex/gcc-13-castxml
Browse files Browse the repository at this point in the history
COMP: GCC 13 CastXML vector include workaround
  • Loading branch information
thewtex authored May 2, 2024
2 parents 7a155f3 + ad6c582 commit 2bbb92f
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Modules/Core/Common/include/itkPrintHelper.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,17 @@

#include <iostream>
#include <iterator>
#include <vector>

// Workaround for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112467
#if defined(ITK_WRAPPING_PARSER) && defined(__GNUC__) && !defined(__clang__)
# define __clang__
# define ITK_CASTXML_GCC_VECTOR_WORKAROUND
#endif
#include <vector>
#if defined(ITK_CASTXML_GCC_VECTOR_WORKAROUND)
# undef __clang__
# undef ITK_CASTXML_GCC_VECTOR_WORKAROUND
#endif

namespace itk
{
Expand Down

0 comments on commit 2bbb92f

Please sign in to comment.