Fixmath  1.4
fixmath_export.h
1 /* Copyright (C) 2005-2011, Axis Communications AB, LUND, SWEDEN
2  *
3  * This file is part of Fixmath.
4  *
5  * Fixmath is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU Lesser General Public License as published
7  * by the Free Software Foundation, either version 3 of the License, or
8  * (at your option) any later version.
9  * You can use the comments under either the terms of the GNU Lesser General
10  * Public License version 3 as published by the Free Software Foundation,
11  * either version 3 of the License or (at your option) any later version, or
12  * the GNU Free Documentation License version 1.3 or any later version
13  * published by the Free Software Foundation; with no Invariant Sections, no
14  * Front-Cover Texts, and no Back-Cover Texts.
15  * A copy of the license is included in the documentation section entitled
16  * "GNU Free Documentation License".
17  *
18  * Fixmath is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21  * GNU Lesser General Public License for more details.
22  *
23  * You should have received a copy of the GNU Lesser General Public
24  * License and a copy of the GNU Free Documentation License along
25  * with Fixmath. If not, see <http://www.gnu.org/licenses/>.
26  */
27 
28 /*
29  * -------------------------------------------------------------
30  * Constants
31  * -------------------------------------------------------------
32  */
33 
37 #ifdef _MSC_VER
38 #ifdef FX_BUILD
39 #define FX_EXPORT __declspec(dllexport)
40 #else
41 #define FX_EXPORT __declspec(dllimport)
42 #endif
43 
44 #elif __GNUC__ >= 4 || __GNUC__ == 3 && __GNUC_MINOR__ >= 3
45 #define FX_EXPORT __attribute__((__visibility__("default")))
46 #else
47 
48 #define FX_EXPORT
49 
50 #endif /* FIXMATH_EXPORT_H */