Skip to content

Commit

Permalink
Merge pull request #683 from redboltz/fix_658
Browse files Browse the repository at this point in the history
Fixed #658.
  • Loading branch information
redboltz authored May 10, 2018
2 parents bd18a36 + 96133c8 commit 49d22b7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
9 changes: 5 additions & 4 deletions include/msgpack/type.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,13 @@
#include "adaptor/cpp11/unordered_map.hpp"
#include "adaptor/cpp11/unordered_set.hpp"

#if __cplusplus >= 201703

#if MSGPACK_HAS_INCLUDE(<optional>)
#include "adaptor/cpp17/optional.hpp"
#include "adaptor/cpp17/string_view.hpp"
#endif // MSGPACK_HAS_INCLUDE(<optional>)

#endif // __cplusplus >= 201703
#if MSGPACK_HAS_INCLUDE(<string_view>)
#include "adaptor/cpp17/string_view.hpp"
#endif // MSGPACK_HAS_INCLUDE(<string_view>)

#endif // defined(MSGPACK_USE_CPP03)

Expand Down
6 changes: 6 additions & 0 deletions include/msgpack/v1/cpp_config_decl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,4 +128,10 @@ MSGPACK_API_VERSION_NAMESPACE(v1) {

#endif // MSGPACK_USE_CPP03

#if defined(__has_include)
#define MSGPACK_HAS_INCLUDE __has_include
#else // defined(__has_include)
#define MSGPACK_HAS_INCLUDE(header) 0
#endif // defined(__has_include)

#endif // MSGPACK_V1_CPP_CONFIG_DECL_HPP

0 comments on commit 49d22b7

Please sign in to comment.