Chris@2: /* libFLAC - Free Lossless Audio Codec library Chris@2: * Copyright (C) 2000,2001,2002,2003,2004,2005,2006,2007 Josh Coalson Chris@2: * Chris@2: * Redistribution and use in source and binary forms, with or without Chris@2: * modification, are permitted provided that the following conditions Chris@2: * are met: Chris@2: * Chris@2: * - Redistributions of source code must retain the above copyright Chris@2: * notice, this list of conditions and the following disclaimer. Chris@2: * Chris@2: * - Redistributions in binary form must reproduce the above copyright Chris@2: * notice, this list of conditions and the following disclaimer in the Chris@2: * documentation and/or other materials provided with the distribution. Chris@2: * Chris@2: * - Neither the name of the Xiph.org Foundation nor the names of its Chris@2: * contributors may be used to endorse or promote products derived from Chris@2: * this software without specific prior written permission. Chris@2: * Chris@2: * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS Chris@2: * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT Chris@2: * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR Chris@2: * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR Chris@2: * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, Chris@2: * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, Chris@2: * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR Chris@2: * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF Chris@2: * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING Chris@2: * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS Chris@2: * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Chris@2: */ Chris@2: Chris@2: #ifndef FLAC__EXPORT_H Chris@2: #define FLAC__EXPORT_H Chris@2: Chris@2: /** \file include/FLAC/export.h Chris@2: * Chris@2: * \brief Chris@2: * This module contains #defines and symbols for exporting function Chris@2: * calls, and providing version information and compiled-in features. Chris@2: * Chris@2: * See the \link flac_export export \endlink module. Chris@2: */ Chris@2: Chris@2: /** \defgroup flac_export FLAC/export.h: export symbols Chris@2: * \ingroup flac Chris@2: * Chris@2: * \brief Chris@2: * This module contains #defines and symbols for exporting function Chris@2: * calls, and providing version information and compiled-in features. Chris@2: * Chris@2: * If you are compiling with MSVC and will link to the static library Chris@2: * (libFLAC.lib) you should define FLAC__NO_DLL in your project to Chris@2: * make sure the symbols are exported properly. Chris@2: * Chris@2: * \{ Chris@2: */ Chris@2: Chris@2: #if defined(FLAC__NO_DLL) || !defined(_MSC_VER) Chris@2: #define FLAC_API Chris@2: Chris@2: #else Chris@2: Chris@2: #ifdef FLAC_API_EXPORTS Chris@2: #define FLAC_API _declspec(dllexport) Chris@2: #else Chris@2: #define FLAC_API _declspec(dllimport) Chris@2: Chris@2: #endif Chris@2: #endif Chris@2: Chris@2: /** These #defines will mirror the libtool-based library version number, see Chris@2: * http://www.gnu.org/software/libtool/manual.html#Libtool-versioning Chris@2: */ Chris@2: #define FLAC_API_VERSION_CURRENT 10 Chris@2: #define FLAC_API_VERSION_REVISION 0 /**< see above */ Chris@2: #define FLAC_API_VERSION_AGE 2 /**< see above */ Chris@2: Chris@2: #ifdef __cplusplus Chris@2: extern "C" { Chris@2: #endif Chris@2: Chris@2: /** \c 1 if the library has been compiled with support for Ogg FLAC, else \c 0. */ Chris@2: extern FLAC_API int FLAC_API_SUPPORTS_OGG_FLAC; Chris@2: Chris@2: #ifdef __cplusplus Chris@2: } Chris@2: #endif Chris@2: Chris@2: /* \} */ Chris@2: Chris@2: #endif