~flier-lu/libmemcached/win32-vs2008

« back to all changes in this revision

Viewing changes to libmemcached/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:
35
35
#  define LIBMEMCACHED_API __global
36
36
#  define LIBMEMCACHED_LOCAL __hidden
37
37
# elif defined(_MSC_VER)
38
 
#  if defined(LIBMEMCACHED_EXPORTS)
 
38
#  if defined(LIBMEMCACHED_STATIC)
 
39
#   define LIBMEMCACHED_API
 
40
#   define LIBMEMCACHED_LOCAL
 
41
#  else
39
42
#   define LIBMEMCACHED_API extern __declspec(dllexport) 
40
43
#   define LIBMEMCACHED_LOCAL
41
 
#  else
42
 
#   define LIBMEMCACHED_API
43
 
#   define LIBMEMCACHED_LOCAL
44
44
#  endif
45
45
# else
46
46
#  define LIBMEMCACHED_API
48
48
# endif /* defined(HAVE_VISIBILITY) */
49
49
#else  /* defined(BUILDING_LIBMEMCACHED) */
50
50
# if defined(_MSC_VER)
51
 
#  if defined(LIBMEMCACHED_EXPORTS)
 
51
#  if defined(LIBMEMCACHED_STATIC)
 
52
#   define LIBMEMCACHED_API
 
53
#   define LIBMEMCACHED_LOCAL
 
54
#  else
52
55
#   define LIBMEMCACHED_API extern __declspec(dllimport) 
53
56
#   define LIBMEMCACHED_LOCAL
54
 
#  else
55
 
#   define LIBMEMCACHED_API
56
 
#   define LIBMEMCACHED_LOCAL
57
57
#  endif
58
58
# else
59
59
#  define LIBMEMCACHED_API