From: Monty Taylor Date: Tue, 7 Jul 2009 06:09:27 +0000 (-0700) Subject: Patch from Trond about visibility on Sun Studio. X-Git-Tag: 0.31~4^2^2 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=c31a1a1cb7f1e176fe59935ef313367c5b0ca0e4;p=m6w6%2Flibmemcached Patch from Trond about visibility on Sun Studio. --- diff --git a/libmemcached/visibility.h b/libmemcached/visibility.h index 049137e3..6bb6382b 100644 --- a/libmemcached/visibility.h +++ b/libmemcached/visibility.h @@ -25,9 +25,12 @@ */ #if defined(BUILDING_LIBMEMCACHED) -# if defined(HAVE_VISIBILITY) +# if defined(HAVE_VISIBILITY) && HAVE_VISIBILITY # define LIBMEMCACHED_API __attribute__ ((visibility("default"))) # define LIBMEMCACHED_LOCAL __attribute__ ((visibility("hidden"))) +# elif defined (__SUNPRO_C) && (__SUNPRO_C >= 0x550) +# define LIBMEMCACHED_API __global +# define LIBMEMCACHED_LOCAL __hidden # elif defined(_MSC_VER) # define LIBMEMCACHED_API extern __declspec(dllexport) # define LIBMEMCACHED_LOCAL