1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- //
- // Copyright (c) 2019-2023 Ruben Perez Hidalgo (rubenperez038 at gmail dot com)
- //
- // Distributed under the Boost Software License, Version 1.0. (See accompanying
- // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
- //
- #ifndef BHO_MYSQL_DETAIL_CONFIG_HPP
- #define BHO_MYSQL_DETAIL_CONFIG_HPP
- #include <asio2/bho/config.hpp>
- // clang-format off
- // Concepts
- #if defined(__has_include)
- #if __has_include(<version>)
- #include <version>
- #if defined(__cpp_concepts) && defined(__cpp_lib_concepts)
- #define BHO_MYSQL_HAS_CONCEPTS
- #endif
- #endif
- #endif
- // C++14 conformance
- #if BHO_CXX_VERSION >= 201402L
- #define BHO_MYSQL_CXX14
- #endif
- // Separate build
- #if defined(BHO_MYSQL_SEPARATE_COMPILATION)
- #define BHO_MYSQL_DECL
- #define BHO_MYSQL_STATIC_IF_COMPILED static
- #define BHO_MYSQL_STATIC_OR_INLINE static
- #else
- #define BHO_MYSQL_HEADER_ONLY
- #define BHO_MYSQL_DECL inline
- #define BHO_MYSQL_STATIC_IF_COMPILED
- #define BHO_MYSQL_STATIC_OR_INLINE inline
- #endif
- // clang-format on
- #endif
|