mqtt_cpp
broker_namespace.hpp
Go to the documentation of this file.
1 // Copyright Takatoshi Kondo 2020
2 //
3 // Distributed under the Boost Software License, Version 1.0.
4 // (See accompanying file LICENSE_1_0.txt or copy at
5 // http://www.boost.org/LICENSE_1_0.txt)
6 
7 #if !defined(MQTT_BROKER_BROKER_NAMESPACE_HPP)
8 #define MQTT_BROKER_BROKER_NAMESPACE_HPP
9 
10 #include <mqtt/config.hpp>
11 
13 
14 #if __cplusplus >= 201703L
15 
16 #define MQTT_BROKER_NS_BEGIN namespace MQTT_NS::broker {
17 #define MQTT_BROKER_NS_END }
18 
19 #else // __cplusplus >= 201703L
20 
21 #define MQTT_BROKER_NS_BEGIN namespace MQTT_NS { namespace broker {
22 #define MQTT_BROKER_NS_END } }
23 
24 #endif // __cplusplus >= 201703L
25 
26 #endif // MQTT_BROKER_BROKER_NAMESPACE_HPP