attributes.hpp 457 B

12345678910111213141516171819202122
  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. #if !defined(MQTT_ATTRIBUTES_HPP)
  7. #define MQTT_ATTRIBUTES_HPP
  8. #include <mqtt/namespace.hpp>
  9. #ifdef _MSC_VER
  10. #define MQTT_ALWAYS_INLINE
  11. #else // GCC or Clang
  12. #define MQTT_ALWAYS_INLINE [[gnu::always_inline]]
  13. #endif // _MSC_VER
  14. #endif // MQTT_ATTRIBUTES_HPP