UCommon
export.h
Go to the documentation of this file.
1 // Copyright (C) 2006-2014 David Sugar, Tycho Softworks.
2 // Copyright (C) 2015 Cherokees of Idaho.
3 //
4 // This file is part of GNU uCommon C++.
5 //
6 // GNU uCommon C++ is free software: you can redistribute it and/or modify
7 // it under the terms of the GNU Lesser General Public License as published
8 // by the Free Software Foundation, either version 3 of the License, or
9 // (at your option) any later version.
10 //
11 // GNU uCommon C++ is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU Lesser General Public License for more details.
15 //
16 // You should have received a copy of the GNU Lesser General Public License
17 // along with GNU uCommon C++. If not, see <http://www.gnu.org/licenses/>.
18 
32 #if defined(_MSC_VER) || defined(WIN32) || defined(_WIN32)
33 #ifdef __EXPORT
34 #undef __EXPORT
35 #endif
36 
37 #ifdef __SHARED
38 #undef __SHARED
39 #endif
40 
41 #ifdef UCOMMON_STATIC
42 #define __EXPORT
43 #else
44 #define __EXPORT __declspec(dllexport)
45 #endif
46 
47 #if defined(UCOMMON_STATIC) || defined(UCOMMON_RUNTIME)
48 #define __SHARED
49 #else
50 #define __SHARED __declspec(dllexport)
51 #endif
52 
53 #endif
54