Patch from Trond about visibility on Sun Studio.
authorMonty Taylor <mordred@inaugust.com>
Tue, 7 Jul 2009 06:09:27 +0000 (23:09 -0700)
committerMonty Taylor <mordred@inaugust.com>
Tue, 7 Jul 2009 06:09:27 +0000 (23:09 -0700)
libmemcached/visibility.h

index 049137e3718f189f8a745f874c5471d403793050..6bb6382bd2000c94311b3b4f8230f1a261f0d9fa 100644 (file)
  */
 
 #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