Description: don't export VCL_TEMPLATE_EXPORT when gcc is in use.
 The patch remove_gcc_version_test.patch introduces numerous changes, some
 of which cause a lot of noise in build logs.  The present patch tries to
 carefully work around the issue with minimal changes.  Ideally the previous
 patch, remove_gcc_version_test.patch, could probably be removed, but I'm not
 sure of potential adverse effects.  The issue is not part of ITK5, so this
 problem will disappear along with ITK4 package.
Author: Étienne Mollier <emollier@debian.org>
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=977118
Forwarded: not-needed
Last-Update: 2022-07-29
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- insighttoolkit.orig/Modules/ThirdParty/VNL/src/vxl/vcl/vcl_compiler.h
+++ insighttoolkit/Modules/ThirdParty/VNL/src/vxl/vcl/vcl_compiler.h
@@ -108,7 +108,8 @@
 // if the compiler doesn't understand "export", we just leave it out.
 // gcc understands it, but ignore it noisily.
 // icc understands it, but ignore it noisily.
-#if !VCL_HAS_EXPORT || defined(VCL_GCC) || defined(VCL_ICC)
+#if !VCL_HAS_EXPORT || defined(VCL_GCC) || defined(VCL_ICC) \
+ || (defined(__GNUC__) && !defined(__ICC))
 # define VCL_TEMPLATE_EXPORT /* ignore */
 #else
 # define VCL_TEMPLATE_EXPORT export
