Core Library 1.7.0.0 Library containing core utilities and tools for threading, networking, logging, INI and CSV file management etc.

PlatformDefines.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 PLATFORMDEFINES
28 #define PLATFORMDEFINES
29
30 #include <boost/predef.h>
31
32 #if defined(_MSC_VER)
33 #if _MSC_VER < 1900
34
35 #define NO_EXCEPT_
36
37 #define USE_EXPLICIT_MOVE_
38
39 #define USE_DEFAULT_CONSTRUCTOR_
40
41 #define CONSTEXPR_ const
42
43 #define STATIC_CONSTEXPR_ static const
44
45 #define TYPENAME_DECL_
46 #else
47 #define NO_EXCEPT_ noexcept
48
49 #define CONSTEXPR_ constexpr
50
51 #define STATIC_CONSTEXPR_ static constexpr
52
53 #define TYPENAME_DECL_ typename
54 #endif
55 #else
56
57 #define NO_EXCEPT_ noexcept
58
59 #define CONSTEXPR_ constexpr
60
61 #define STATIC_CONSTEXPR_ static constexpr
62
63 #define TYPENAME_DECL_ typename
64 #endif
65
66 #endif // PLATFORMDEFINES