Skip to content
Snippets Groups Projects
Commit 0fc11a3b authored by Mickael Savinaud's avatar Mickael Savinaud
Browse files

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
parent 3efbdf7b
No related branches found
No related tags found
No related merge requests found
...@@ -403,6 +403,10 @@ struct _Hashtable_const_iterator { ...@@ -403,6 +403,10 @@ struct _Hashtable_const_iterator {
// Note: assumes long is at least 32 bits. // Note: assumes long is at least 32 bits.
enum { _stl_num_primes = 31 }; 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] = static const unsigned long _stl_prime_list[_stl_num_primes] =
{ {
5ul, 11ul, 23ul, 5ul, 11ul, 23ul,
...@@ -414,10 +418,6 @@ static const unsigned long _stl_prime_list[_stl_num_primes] = ...@@ -414,10 +418,6 @@ static const unsigned long _stl_prime_list[_stl_num_primes] =
1610612741ul, 3221225473ul, 4294967291ul 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]; } return &_stl_prime_list[0]; }
inline size_t _stl_next_prime(size_t __n) inline size_t _stl_next_prime(size_t __n)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment