From 0fc11a3b0b41e33796e1e25852ca67d182d344f1 Mon Sep 17 00:00:00 2001
From: Mickael Savinaud <mickael.savinaud@c-s.fr>
Date: Tue, 11 Mar 2014 18:23:12 +0100
Subject: [PATCH] backout 12576beb1198 about internal ITK KWSys modification
 need to avoid dl_close problem is done in the ITK package provided by OTB
 Team on Ubuntu and the modifcation is also done in the external ITK used by
 the OTB dashboard build on dora

---
 .../Modules/ThirdParty/KWSys/src/KWSys/hashtable.hxx.in   | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/Utilities/ITK/Modules/ThirdParty/KWSys/src/KWSys/hashtable.hxx.in b/Utilities/ITK/Modules/ThirdParty/KWSys/src/KWSys/hashtable.hxx.in
index 95399170b5..62aa3f3237 100644
--- a/Utilities/ITK/Modules/ThirdParty/KWSys/src/KWSys/hashtable.hxx.in
+++ b/Utilities/ITK/Modules/ThirdParty/KWSys/src/KWSys/hashtable.hxx.in
@@ -403,6 +403,10 @@ struct _Hashtable_const_iterator {
 // Note: assumes long is at least 32 bits.
 enum { _stl_num_primes = 31 };
 
+// create a function with a static local to that function that returns
+// the static
+inline const unsigned long* get_stl_prime_list() {
+
 static const unsigned long _stl_prime_list[_stl_num_primes] =
 {
   5ul,          11ul,         23ul,
@@ -414,10 +418,6 @@ static const unsigned long _stl_prime_list[_stl_num_primes] =
   1610612741ul, 3221225473ul, 4294967291ul
 };
 
-// create a function with a static local to that function that returns
-// the static
-inline const unsigned long* get_stl_prime_list() {
-
 return &_stl_prime_list[0]; }
 
 inline size_t _stl_next_prime(size_t __n)
-- 
GitLab