summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKWSys Robot <kwrobot@kitware.com>2015-03-10 18:16:53 (GMT)
committerBrad King <brad.king@kitware.com>2015-03-11 12:41:11 (GMT)
commit9a427f86199913d6674d09a66d97d761c38c77c7 (patch)
tree0e4964c9d8cc665abe970ec2159417b469363459
parentaa84d26e631e11d73328c24ac0301c43f661869b (diff)
downloadCMake-9a427f86199913d6674d09a66d97d761c38c77c7.zip
CMake-9a427f86199913d6674d09a66d97d761c38c77c7.tar.gz
CMake-9a427f86199913d6674d09a66d97d761c38c77c7.tar.bz2
KWSys 2015-03-10 (4a698414)
Extract upstream KWSys using the following shell commands. $ git archive --prefix=upstream-kwsys/ 4a698414 | tar x $ git shortlog --no-merges --abbrev=8 --format='%h %s' 4890f30c..4a698414 Brad King (1): 4a698414 hashtable: Give prime number table functions internal linkage Change-Id: I9f06cdf8c8b5fbe7e1f07afbcc77457f5ee6445f
-rw-r--r--hashtable.hxx.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/hashtable.hxx.in b/hashtable.hxx.in
index b93e9be..7e7dc42 100644
--- a/hashtable.hxx.in
+++ b/hashtable.hxx.in
@@ -408,7 +408,7 @@ 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 inline const unsigned long* get_stl_prime_list() {
static const unsigned long _stl_prime_list[_stl_num_primes] =
{
@@ -423,7 +423,7 @@ static const unsigned long _stl_prime_list[_stl_num_primes] =
return &_stl_prime_list[0]; }
-inline size_t _stl_next_prime(size_t __n)
+static inline size_t _stl_next_prime(size_t __n)
{
const unsigned long* __first = get_stl_prime_list();
const unsigned long* __last = get_stl_prime_list() + (int)_stl_num_primes;