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