From 2b5ec258799364199660a38be0a6e7c76e8c5651 Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 4 Mar 2005 11:26:08 +0100 Subject: Qualify 'inline' functions as 'static inline' to please the Sun C compiler. mysys/hash.c: The Sun C compiler insists on seeing 'static inline', or else it will not resolve the symbol. --- mysys/hash.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mysys/hash.c') diff --git a/mysys/hash.c b/mysys/hash.c index 973f6f7cefa..3ee575a9c98 100644 --- a/mysys/hash.c +++ b/mysys/hash.c @@ -87,7 +87,7 @@ void hash_free(HASH *hash) handle inline functions that are not defined as native types */ -inline char* +static inline char* hash_key(HASH *hash,const byte *record,uint *length,my_bool first) { if (hash->get_key) @@ -183,8 +183,8 @@ uint calc_hashnr_caseup(const byte *key, uint len) /* for compilers which can not handle inline */ -#if !defined(__SUNPRO_C) && !defined(__USLC__) && !defined(__sgi) -inline +#if !defined(__USLC__) && !defined(__sgi) +static inline #endif unsigned int rec_hashnr(HASH *hash,const byte *record) { -- cgit v1.2.1