Remove _HIDDEN from src/lookup_string_in_fixed_set.c

This commit is contained in:
Tim Rühsen 2018-04-26 16:45:15 +02:00
parent c93175c32d
commit a6397a0d62
1 changed files with 4 additions and 10 deletions

View File

@ -13,12 +13,6 @@
# define _GCC_VERSION_AT_LEAST(major, minor) 0 # define _GCC_VERSION_AT_LEAST(major, minor) 0
#endif #endif
#if _GCC_VERSION_AT_LEAST(4,0)
# define _HIDDEN __attribute__ ((visibility ("hidden")))
#else
# define _HIDDEN
#endif
#define CHECK_LT(a, b) if ((a) >= b) return 0 #define CHECK_LT(a, b) if ((a) >= b) return 0
static const char multibyte_length_table[16] = { static const char multibyte_length_table[16] = {
@ -203,9 +197,9 @@ static int GetReturnValue(const unsigned char* offset,
*/ */
/* prototype to skip warning with -Wmissing-prototypes */ /* prototype to skip warning with -Wmissing-prototypes */
int _HIDDEN LookupStringInFixedSet(const unsigned char*, size_t,const char*, size_t); int LookupStringInFixedSet(const unsigned char*, size_t,const char*, size_t);
int _HIDDEN LookupStringInFixedSet(const unsigned char* graph, int LookupStringInFixedSet(const unsigned char* graph,
size_t length, size_t length,
const char* key, const char* key,
size_t key_length) size_t key_length)
@ -277,9 +271,9 @@ int _HIDDEN LookupStringInFixedSet(const unsigned char* graph,
} }
/* prototype to skip warning with -Wmissing-prototypes */ /* prototype to skip warning with -Wmissing-prototypes */
int _HIDDEN GetUtfMode(const unsigned char *graph, size_t length); int GetUtfMode(const unsigned char *graph, size_t length);
int _HIDDEN GetUtfMode(const unsigned char *graph, size_t length) int GetUtfMode(const unsigned char *graph, size_t length)
{ {
return length > 0 && graph[length - 1] < 0x80; return length > 0 && graph[length - 1] < 0x80;
} }