~flier-lu/libmemcached/win32-vs2008

« back to all changes in this revision

Viewing changes to libhashkit/visibility.h

  • Committer: Flier Lu
  • Date: 2011-01-07 07:21:39 UTC
  • Revision ID: flier.lu@gmail.com-20110107072139-wy7mfk4v5iwqa8mx
define LIBMEMCACHED_STATIC to support static link

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
#  define HASHKIT_API __global
33
33
#  define HASHKIT_LOCAL __hidden
34
34
# elif defined(_MSC_VER)
35
 
#  if defined(LIBHASHKIT_EXPORTS)
 
35
#  if defined(LIBMEMCACHED_STATIC)
 
36
#   define HASHKIT_API
 
37
#   define HASHKIT_LOCAL
 
38
#  else
36
39
#   define HASHKIT_API extern __declspec(dllexport) 
37
40
#   define HASHKIT_LOCAL
38
 
#  else
39
 
#   define HASHKIT_API
40
 
#   define HASHKIT_LOCAL
41
41
#  endif 
42
42
# else
43
43
#  define HASHKIT_API
45
45
# endif /* defined(HAVE_VISIBILITY) */
46
46
#else  /* defined(BUILDING_HASHKIT) */
47
47
# if defined(_MSC_VER)
48
 
#  if defined(LIBHASHKIT_EXPORTS)
 
48
#  if defined(LIBMEMCACHED_STATIC)
 
49
#   define HASHKIT_API
 
50
#   define HASHKIT_LOCAL
 
51
#  else
49
52
#   define HASHKIT_API extern __declspec(dllimport) 
50
53
#   define HASHKIT_LOCAL
51
 
#  else
52
 
#   define HASHKIT_API
53
 
#   define HASHKIT_LOCAL
54
54
#  endif 
55
55
# else
56
56
#  define HASHKIT_API