Browse Source

Make get_stl_prime_list an inline function to avoid duplicate copies of it.

Bill Hoffman 15 năm trước cách đây
mục cha
commit
54319451a5
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      Source/kwsys/hashtable.hxx.in

+ 1 - 1
Source/kwsys/hashtable.hxx.in

@@ -390,7 +390,7 @@ enum { _stl_num_primes = 31 };
 
 // create a function with a static local to that function that returns
 // the static
-const unsigned long* get_stl_prime_list() {
+inline const unsigned long* get_stl_prime_list() {
 
 static const unsigned long _stl_prime_list[_stl_num_primes] =
 {