mqtt_cpp
attributes.hpp
Go to the documentation of this file.
1 // Copyright Takatoshi Kondo 2018
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_ATTRIBUTES_HPP)
8 #define MQTT_ATTRIBUTES_HPP
9 
10 #include <mqtt/namespace.hpp>
11 
12 #ifdef _MSC_VER
13 
14 #define MQTT_ALWAYS_INLINE
15 
16 #else // GCC or Clang
17 
18 #define MQTT_ALWAYS_INLINE [[gnu::always_inline]]
19 
20 #endif // _MSC_VER
21 
22 #endif // MQTT_ATTRIBUTES_HPP