Commit 2b5ec258 authored by unknown's avatar unknown

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.
parent 16874ec6
...@@ -87,7 +87,7 @@ void hash_free(HASH *hash) ...@@ -87,7 +87,7 @@ void hash_free(HASH *hash)
handle inline functions that are not defined as native types 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) hash_key(HASH *hash,const byte *record,uint *length,my_bool first)
{ {
if (hash->get_key) if (hash->get_key)
...@@ -183,8 +183,8 @@ uint calc_hashnr_caseup(const byte *key, uint len) ...@@ -183,8 +183,8 @@ uint calc_hashnr_caseup(const byte *key, uint len)
/* for compilers which can not handle inline */ /* for compilers which can not handle inline */
#if !defined(__SUNPRO_C) && !defined(__USLC__) && !defined(__sgi) #if !defined(__USLC__) && !defined(__sgi)
inline static inline
#endif #endif
unsigned int rec_hashnr(HASH *hash,const byte *record) unsigned int rec_hashnr(HASH *hash,const byte *record)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment