Blame include/FLAC++/export.h

Packit Service 065837
/* libFLAC++ - Free Lossless Audio Codec library
Packit Service 065837
 * Copyright (C) 2002-2009  Josh Coalson
Packit Service 065837
 * Copyright (C) 2011-2016  Xiph.Org Foundation
Packit Service 065837
 *
Packit Service 065837
 * Redistribution and use in source and binary forms, with or without
Packit Service 065837
 * modification, are permitted provided that the following conditions
Packit Service 065837
 * are met:
Packit Service 065837
 *
Packit Service 065837
 * - Redistributions of source code must retain the above copyright
Packit Service 065837
 * notice, this list of conditions and the following disclaimer.
Packit Service 065837
 *
Packit Service 065837
 * - Redistributions in binary form must reproduce the above copyright
Packit Service 065837
 * notice, this list of conditions and the following disclaimer in the
Packit Service 065837
 * documentation and/or other materials provided with the distribution.
Packit Service 065837
 *
Packit Service 065837
 * - Neither the name of the Xiph.org Foundation nor the names of its
Packit Service 065837
 * contributors may be used to endorse or promote products derived from
Packit Service 065837
 * this software without specific prior written permission.
Packit Service 065837
 *
Packit Service 065837
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
Packit Service 065837
 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
Packit Service 065837
 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
Packit Service 065837
 * A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR
Packit Service 065837
 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
Packit Service 065837
 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
Packit Service 065837
 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
Packit Service 065837
 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
Packit Service 065837
 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
Packit Service 065837
 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
Packit Service 065837
 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Packit Service 065837
 */
Packit Service 065837
Packit Service 065837
#ifndef FLACPP__EXPORT_H
Packit Service 065837
#define FLACPP__EXPORT_H
Packit Service 065837
Packit Service 065837
/** \file include/FLAC++/export.h
Packit Service 065837
 *
Packit Service 065837
 *  \brief
Packit Service 065837
 *  This module contains #defines and symbols for exporting function
Packit Service 065837
 *  calls, and providing version information and compiled-in features.
Packit Service 065837
 *
Packit Service 065837
 *  See the \link flacpp_export export \endlink module.
Packit Service 065837
 */
Packit Service 065837
Packit Service 065837
/** \defgroup flacpp_export FLAC++/export.h: export symbols
Packit Service 065837
 *  \ingroup flacpp
Packit Service 065837
 *
Packit Service 065837
 *  \brief
Packit Service 065837
 *  This module contains #defines and symbols for exporting function
Packit Service 065837
 *  calls, and providing version information and compiled-in features.
Packit Service 065837
 *
Packit Service 065837
 *  If you are compiling with MSVC and will link to the static library
Packit Service 065837
 *  (libFLAC++.lib) you should define FLAC__NO_DLL in your project to
Packit Service 065837
 *  make sure the symbols are exported properly.
Packit Service 065837
 *
Packit Service 065837
 * \{
Packit Service 065837
 */
Packit Service 065837
Packit Service 065837
#if defined(FLAC__NO_DLL)
Packit Service 065837
#define FLACPP_API
Packit Service 065837
Packit Service 065837
#elif defined(_MSC_VER)
Packit Service 065837
#ifdef FLACPP_API_EXPORTS
Packit Service 065837
#define	FLACPP_API __declspec(dllexport)
Packit Service 065837
#else
Packit Service 065837
#define FLACPP_API __declspec(dllimport)
Packit Service 065837
#endif
Packit Service 065837
Packit Service 065837
#elif defined(FLAC__USE_VISIBILITY_ATTR)
Packit Service 065837
#define FLACPP_API __attribute__ ((visibility ("default")))
Packit Service 065837
Packit Service 065837
#else
Packit Service 065837
#define FLACPP_API
Packit Service 065837
Packit Service 065837
#endif
Packit Service 065837
Packit Service 065837
/* These #defines will mirror the libtool-based library version number, see
Packit Service 065837
 * http://www.gnu.org/software/libtool/manual/libtool.html#Libtool-versioning
Packit Service 065837
 */
Packit Service 065837
#define FLACPP_API_VERSION_CURRENT 9
Packit Service 065837
#define FLACPP_API_VERSION_REVISION 0
Packit Service 065837
#define FLACPP_API_VERSION_AGE 3
Packit Service 065837
Packit Service 065837
/* \} */
Packit Service 065837
Packit Service 065837
#endif