mirror of
https://github.com/reactos/ccache.git
synced 2024-11-26 21:20:32 +00:00
Portability: Use AC_C_INLINE to check for availability of the inline keyword
This commit is contained in:
parent
8ce0a8475f
commit
6256d04b04
@ -114,6 +114,8 @@ else
|
||||
mkdir -p zlib
|
||||
fi
|
||||
|
||||
AC_C_INLINE
|
||||
|
||||
AC_CONFIG_FILES([Makefile dev.mk])
|
||||
AC_OUTPUT
|
||||
|
||||
|
@ -32,6 +32,8 @@
|
||||
#ifndef __HASHTABLE_CWC22_H__
|
||||
#define __HASHTABLE_CWC22_H__
|
||||
|
||||
#include "config.h"
|
||||
|
||||
struct hashtable;
|
||||
|
||||
/* Example of use:
|
||||
|
@ -29,7 +29,10 @@ hash(struct hashtable *h, void *k);
|
||||
|
||||
/*****************************************************************************/
|
||||
/* indexFor */
|
||||
#define indexFor(tablelength, hashvalue) ((hashvalue) % (tablelength))
|
||||
static inline unsigned int
|
||||
indexFor(unsigned int tablelength, unsigned int hashvalue) {
|
||||
return (hashvalue % tablelength);
|
||||
}
|
||||
|
||||
/* Only works if tablelength == 2^N */
|
||||
/*static inline unsigned int
|
||||
|
Loading…
Reference in New Issue
Block a user