2
* Summary: interface for HashKit functions
3
* Description: visibitliy macros for HashKit library
5
* Use and distribution licensed under the BSD license. See
6
* the COPYING file in this directory for full text.
13
* @brief Visibility control macros
16
#ifndef HASHKIT_VISIBILITY_H
17
#define HASHKIT_VISIBILITY_H
21
* HASHKIT_API is used for the public API symbols. It either DLL imports or
22
* DLL exports (or does nothing for static build).
24
* HASHKIT_LOCAL is used for non-api symbols.
27
#if defined(BUILDING_HASHKIT)
28
# if defined(HAVE_VISIBILITY) && HAVE_VISIBILITY
29
# define HASHKIT_API __attribute__ ((visibility("default")))
30
# define HASHKIT_LOCAL __attribute__ ((visibility("hidden")))
31
# elif defined (__SUNPRO_C) && (__SUNPRO_C >= 0x550)
32
# define HASHKIT_API __global
33
# define HASHKIT_LOCAL __hidden
34
# elif defined(_MSC_VER)
35
# define HASHKIT_API extern __declspec(dllexport)
36
# define HASHKIT_LOCAL
39
# define HASHKIT_LOCAL
40
# endif /* defined(HAVE_VISIBILITY) */
41
#else /* defined(BUILDING_HASHKIT) */
42
# if defined(_MSC_VER)
43
# define HASHKIT_API extern __declspec(dllimport)
44
# define HASHKIT_LOCAL
47
# define HASHKIT_LOCAL
48
# endif /* defined(_MSC_VER) */
49
#endif /* defined(BUILDING_HASHKIT) */
51
#endif /* HASHKIT_VISIBILITY_H */