diff --git a/src/lookup_string_in_fixed_set.c b/src/lookup_string_in_fixed_set.c index 0bc3f9e..5712fe5 100644 --- a/src/lookup_string_in_fixed_set.c +++ b/src/lookup_string_in_fixed_set.c @@ -13,12 +13,6 @@ # define _GCC_VERSION_AT_LEAST(major, minor) 0 #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 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 */ -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, const char* key, size_t key_length) @@ -277,9 +271,9 @@ int _HIDDEN LookupStringInFixedSet(const unsigned char* graph, } /* 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; }