Sha256: 47fa6de3352d67811321b4c3adcb0d52900a96cf3e06e0620e9a8f3dbb41308f

Contents?: true

Size: 1.43 KB

Versions: 28

Compression:

Stored size: 1.43 KB

Contents

/*
 * Summary: interface for memcached server
 * Description: visibitliy macros for libmemcached
 *
 * Use and distribution licensed under the BSD license.  See
 * the COPYING file in this directory for full text.
 * 
 * Author: Monty Taylor
 */

/**
 * @file
 * @brief Visibility control macros
 */

#ifndef __LIBMEMCACHED_VISIBILITY_H
#define __LIBMEMCACHED_VISIBILITY_H

/**
 *
 * LIBMEMCACHED_API is used for the public API symbols. It either DLL imports or
 * DLL exports (or does nothing for static build).
 *
 * LIBMEMCACHED_LOCAL is used for non-api symbols.
 */

#if defined(BUILDING_LIBMEMCACHED)
# 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
# else
#  define LIBMEMCACHED_API
#  define LIBMEMCACHED_LOCAL
# endif /* defined(HAVE_VISIBILITY) */
#else  /* defined(BUILDING_LIBMEMCACHED) */
# if defined(_MSC_VER)
#  define LIBMEMCACHED_API extern __declspec(dllimport) 
#  define LIBMEMCACHED_LOCAL
# else
#  define LIBMEMCACHED_API
#  define LIBMEMCACHED_LOCAL
# endif /* defined(_MSC_VER) */
#endif /* defined(BUILDING_LIBMEMCACHED) */

#endif /* __LIBMEMCACHED_VISIBILITY_H */

Version data entries

28 entries across 27 versions & 4 rubygems

Version Path
vinted-memcached-1.8.5 vendor/libmemcached-0.32/libmemcached/visibility.h
vinted-memcached-1.8.4 ext/libmemcached-0.32/libmemcached/visibility.h
vinted-memcached-1.8.3 ext/libmemcached-0.32/libmemcached/visibility.h
vinted-memcached-1.8.2 ext/libmemcached-0.32/libmemcached/visibility.h
vinted-memcached-1.8.0 ext/libmemcached-0.32/libmemcached/visibility.h
dalli_memcached-1.8.0 ext/libmemcached-0.32/libmemcached/visibility.h
memcached-1.8.0 ext/libmemcached-0.32/libmemcached/visibility.h
memcached-1.7.2 ext/libmemcached-0.32/libmemcached/visibility.h
memcached-1.7.0 ext/libmemcached-0.32/libmemcached/visibility.h
memcached-1.6.1 ext/libmemcached-0.32/libmemcached/visibility.h
memcached-1.6.0 ext/libmemcached-0.32/libmemcached/visibility.h
memcached-1.5.1 ext/libmemcached-0.32/libmemcached/visibility.h
memcached-1.5.0 ext/libmemcached-0.32/libmemcached/visibility.h
boourns-memcached-1.4.6 ext/include/libmemcached/visibility.h
boourns-memcached-1.4.6 ext/libmemcached-0.32/libmemcached/visibility.h
memcached-1.4.6 ext/libmemcached-0.32/libmemcached/visibility.h
memcached-1.4.5 ext/libmemcached-0.32/libmemcached/visibility.h
memcached-1.4.3 ext/libmemcached-0.32/libmemcached/visibility.h
memcached-1.4.2 ext/libmemcached-0.32/libmemcached/visibility.h
memcached-1.4.1 ext/libmemcached-0.32/libmemcached/visibility.h