Chris@2
|
1 /* libFLAC++ - Free Lossless Audio Codec library
|
Chris@2
|
2 * Copyright (C) 2002,2003,2004,2005,2006,2007 Josh Coalson
|
Chris@2
|
3 *
|
Chris@2
|
4 * Redistribution and use in source and binary forms, with or without
|
Chris@2
|
5 * modification, are permitted provided that the following conditions
|
Chris@2
|
6 * are met:
|
Chris@2
|
7 *
|
Chris@2
|
8 * - Redistributions of source code must retain the above copyright
|
Chris@2
|
9 * notice, this list of conditions and the following disclaimer.
|
Chris@2
|
10 *
|
Chris@2
|
11 * - Redistributions in binary form must reproduce the above copyright
|
Chris@2
|
12 * notice, this list of conditions and the following disclaimer in the
|
Chris@2
|
13 * documentation and/or other materials provided with the distribution.
|
Chris@2
|
14 *
|
Chris@2
|
15 * - Neither the name of the Xiph.org Foundation nor the names of its
|
Chris@2
|
16 * contributors may be used to endorse or promote products derived from
|
Chris@2
|
17 * this software without specific prior written permission.
|
Chris@2
|
18 *
|
Chris@2
|
19 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
Chris@2
|
20 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
Chris@2
|
21 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
Chris@2
|
22 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR
|
Chris@2
|
23 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
Chris@2
|
24 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
Chris@2
|
25 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
Chris@2
|
26 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
Chris@2
|
27 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
Chris@2
|
28 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
Chris@2
|
29 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
Chris@2
|
30 */
|
Chris@2
|
31
|
Chris@2
|
32 #ifndef FLACPP__EXPORT_H
|
Chris@2
|
33 #define FLACPP__EXPORT_H
|
Chris@2
|
34
|
Chris@2
|
35 /** \file include/FLAC++/export.h
|
Chris@2
|
36 *
|
Chris@2
|
37 * \brief
|
Chris@2
|
38 * This module contains #defines and symbols for exporting function
|
Chris@2
|
39 * calls, and providing version information and compiled-in features.
|
Chris@2
|
40 *
|
Chris@2
|
41 * See the \link flacpp_export export \endlink module.
|
Chris@2
|
42 */
|
Chris@2
|
43
|
Chris@2
|
44 /** \defgroup flacpp_export FLAC++/export.h: export symbols
|
Chris@2
|
45 * \ingroup flacpp
|
Chris@2
|
46 *
|
Chris@2
|
47 * \brief
|
Chris@2
|
48 * This module contains #defines and symbols for exporting function
|
Chris@2
|
49 * calls, and providing version information and compiled-in features.
|
Chris@2
|
50 *
|
Chris@2
|
51 * If you are compiling with MSVC and will link to the static library
|
Chris@2
|
52 * (libFLAC++.lib) you should define FLAC__NO_DLL in your project to
|
Chris@2
|
53 * make sure the symbols are exported properly.
|
Chris@2
|
54 *
|
Chris@2
|
55 * \{
|
Chris@2
|
56 */
|
Chris@2
|
57
|
Chris@2
|
58 #if defined(FLAC__NO_DLL) || !defined(_MSC_VER)
|
Chris@2
|
59 #define FLACPP_API
|
Chris@2
|
60
|
Chris@2
|
61 #else
|
Chris@2
|
62
|
Chris@2
|
63 #ifdef FLACPP_API_EXPORTS
|
Chris@2
|
64 #define FLACPP_API _declspec(dllexport)
|
Chris@2
|
65 #else
|
Chris@2
|
66 #define FLACPP_API _declspec(dllimport)
|
Chris@2
|
67
|
Chris@2
|
68 #endif
|
Chris@2
|
69 #endif
|
Chris@2
|
70
|
Chris@2
|
71 /* These #defines will mirror the libtool-based library version number, see
|
Chris@2
|
72 * http://www.gnu.org/software/libtool/manual.html#Libtool-versioning
|
Chris@2
|
73 */
|
Chris@2
|
74 #define FLACPP_API_VERSION_CURRENT 8
|
Chris@2
|
75 #define FLACPP_API_VERSION_REVISION 0
|
Chris@2
|
76 #define FLACPP_API_VERSION_AGE 2
|
Chris@2
|
77
|
Chris@2
|
78 /* \} */
|
Chris@2
|
79
|
Chris@2
|
80 #endif
|