CppWAMP
C++11 client library for the WAMP protocol
config.hpp
1 /*------------------------------------------------------------------------------
2  Copyright Butterfly Energy Systems 2014-2015, 2022.
3  Distributed under the Boost Software License, Version 1.0.
4  http://www.boost.org/LICENSE_1_0.txt
5 ------------------------------------------------------------------------------*/
6 
7 #ifndef CPPWAMP_CONFIG_HPP
8 #define CPPWAMP_CONFIG_HPP
9 
10 #ifdef _WIN32
11 #define CPPWAMP_HAS_UNIX_DOMAIN_SOCKETS 0
12 #else
13 #define CPPWAMP_HAS_UNIX_DOMAIN_SOCKETS 1
14 #endif
15 
16 #if defined(__cpp_inline_variables) || defined(CPPWAMP_FOR_DOXYGEN)
17 #define CPPWAMP_INLINE_VARIABLE inline
18 #else
19 #define CPPWAMP_INLINE_VARIABLE
20 #endif
21 
22 #if (defined(__has_cpp_attribute) && __has_cpp_attribute(nodiscard)) \
23  || defined(CPPWAMP_FOR_DOXYGEN)
24 #define CPPWAMP_NODISCARD [[nodiscard]]
25 #else
26 #define CPPWAMP_NODISCARD
27 #endif
28 
29 #if (defined(__has_cpp_attribute) && __has_cpp_attribute(deprecated)) \
30  || defined(CPPWAMP_FOR_DOXYGEN)
31 #define CPPWAMP_DEPRECATED [[deprecated]]
32 #else
33 #define CPPWAMP_DEPRECATED
34 #endif
35 
36 #endif // CPPWAMP_CONFIG_HPP