Drizzled Public API Documentation

visibility.h
Go to the documentation of this file.
00001 /* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
00002  *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
00003  *
00004  *  Copyright (C) 2009 Sun Microsystems, Inc.
00005  *
00006  *  This program is free software; you can redistribute it and/or modify
00007  *  it under the terms of the GNU General Public License as published by
00008  *  the Free Software Foundation; version 2 of the License.
00009  *
00010  *  This program is distributed in the hope that it will be useful,
00011  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  *  GNU General Public License for more details.
00014  *
00015  *  You should have received a copy of the GNU General Public License
00016  *  along with this program; if not, write to the Free Software
00017  *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00018  *
00019  *  Implementation drawn from visibility.texi in gnulib.
00020  */
00021 
00028 #pragma once
00029 
00038 #if defined(BUILDING_DRIZZLED) && defined(HAVE_VISIBILITY)
00039 # if defined(__GNUC__)
00040 #  define DRIZZLED_API __attribute__ ((visibility("default")))
00041 #  define DRIZZLED_INTERNAL_API __attribute__ ((visibility("hidden")))
00042 #  define DRIZZLED_API_DEPRECATED __attribute__ ((deprecated,visibility("default")))
00043 #  define DRIZZLED_LOCAL  __attribute__ ((visibility("hidden")))
00044 # elif (defined(__SUNPRO_C) && (__SUNPRO_C >= 0x550)) || (defined(__SUNPRO_CC) && (__SUNPRO_CC >= 0x550))
00045 #  define DRIZZLED_API __global
00046 #  define DRIZZLED_INTERNAL_API __hidden
00047 #  define DRIZZLED_API_DEPRECATED __global
00048 #  define DRIZZLED_LOCAL __hidden
00049 # elif defined(_MSC_VER)
00050 #  define DRIZZLED_API extern __declspec(dllexport)
00051 #  define DRIZZLED_INTERNAL_API extern __declspec(dllexport)
00052 #  define DRIZZLED_DEPRECATED_API extern __declspec(dllexport)
00053 #  define DRIZZLED_LOCAL
00054 # endif
00055 #else  /* defined(BUILDING_DRIZZLED) && defined(HAVE_VISIBILITY) */
00056 # if defined(_MSC_VER)
00057 #  define DRIZZLED_API extern __declspec(dllimport)
00058 #  define DRIZZLED_INTERNAL_API extern __declspec(dllimport)
00059 #  define DRIZZLED_API_DEPRECATED extern __declspec(dllimport)
00060 #  define DRIZZLED_LOCAL
00061 # else
00062 #  define DRIZZLED_API
00063 #  define DRIZZLED_INTERNAL_API
00064 #  define DRIZZLED_API_DEPRECATED
00065 #  define DRIZZLED_LOCAL
00066 # endif /* defined(_MSC_VER) */
00067 #endif  /* defined(BUILDING_DRIZZLED) && defined(HAVE_VISIBILITY) */
00068 
00069 
00070