Core Library  1.7.0.0
Library containing core utilities and tools for threading, networking, logging, INI and CSV file management etc.
CoreLibraryDllGlobal.h
Go to the documentation of this file.
1 // This file is part of CoreLibrary containing useful reusable utility
2 // classes.
3 //
4 // Copyright (C) 2014 to present, Duncan Crutchley
5 // Contact <dac1976github@outlook.com>
6 //
7 // This program is free software: you can redistribute it and/or modify
8 // it under the terms of the GNU Lesser General Public License as published
9 // by the Free Software Foundation, either version 3 of the License, or
10 // (at your option) any later version.
11 //
12 // This program is distributed in the hope that it will be useful,
13 // but WITHOUT ANY WARRANTY; without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 // GNU General Public License and GNU Lesser General Public License
16 // for more details.
17 //
18 // You should have received a copy of the GNU General Public License
19 // and GNU Lesser General Public License along with this program. If
20 // not, see <http://www.gnu.org/licenses/>.
21 
27 #ifndef CORELIBRARYDLLGLOBALH
28 #define CORELIBRARYDLLGLOBALH
29 
30 #include <boost/predef.h>
31 
32 #if BOOST_OS_WINDOWS
33 #if defined(CORE_LIBRARY_DLL)
34 #if (BOOST_COMP_GNUC || BOOST_COMP_CLANG)
35 #define CORE_LIBRARY_DLL_SHARED_API __attribute__((dllexport))
36 #elif defined(_MSC_VER)
37 #define CORE_LIBRARY_DLL_SHARED_API __declspec(dllexport)
38 #else
39 #error Unsupported compiler! Please modify this header to add support.
40 #endif
41 #else
42 #if defined(CORE_LIBRARY_LIB)
43 #define CORE_LIBRARY_DLL_SHARED_API
44 #else
45 #if (BOOST_COMP_GNUC || BOOST_COMP_CLANG)
46 #define CORE_LIBRARY_DLL_SHARED_API __attribute__((dllimport))
47 #else
48 #define CORE_LIBRARY_DLL_SHARED_API __declspec(dllimport)
49 #endif
50 #endif
51 #endif
52 #elif BOOST_OS_LINUX
53 #if (BOOST_COMP_GNUC || BOOST_COMP_CLANG)
54 #define CORE_LIBRARY_DLL_SHARED_API __attribute__((visibility("default")))
55 #else
56 #error Unsupported compiler! Please modify this header to add support.
57 #endif
58 #else
59 #error Unsupported OS!
60 #endif
61 
62 #endif // CORELIBRARYDLLGLOBALH