UCommon
export.h
Go to the documentation of this file.
1 // Copyright (C) 2006-2014 David Sugar, Tycho Softworks.
2 //
3 // This file is part of GNU uCommon C++.
4 //
5 // GNU uCommon C++ 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 //
10 // GNU uCommon C++ is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU Lesser General Public License for more details.
14 //
15 // You should have received a copy of the GNU Lesser General Public License
16 // along with GNU uCommon C++. If not, see <http://www.gnu.org/licenses/>.
17 
31 #if defined(_MSC_VER) || defined(WIN32) || defined(_WIN32)
32 #ifdef __EXPORT
33 #undef __EXPORT
34 #endif
35 
36 #ifdef __SHARED
37 #undef __SHARED
38 #endif
39 
40 #ifdef UCOMMON_STATIC
41 #define __EXPORT
42 #else
43 #define __EXPORT __declspec(dllexport)
44 #endif
45 
46 #if defined(UCOMMON_STATIC) || defined(UCOMMON_RUNTIME)
47 #define __SHARED
48 #else
49 #define __SHARED __declspec(dllexport)
50 #endif
51 
52 #endif
53