Skip to content

Commit

Permalink
organize config
Browse files Browse the repository at this point in the history
  • Loading branch information
srz-zumix committed Oct 2, 2019
1 parent 2e36d7d commit 9fd0f3b
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions include/internal/iutest_stdlib.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -310,24 +310,12 @@

#endif

#if defined(__cpp_lib_to_chars) && __cpp_lib_to_chars >= 201611
# define IUTEST_HAS_STD_TO_CHARS 1
#endif

#endif

#if IUTEST_HAS_CXX17

// c++17 feature

#if !defined(IUTEST_HAS_STD_FILESYSTEM)
# if defined(__cpp_lib_filesystem) && __cpp_lib_filesystem >= 201703
# if !defined(__cpp_lib_experimental_filesystem)
# define IUTEST_HAS_STD_FILESYSTEM 1
# endif
# endif
#endif

#if !defined(IUTEST_HAS_CXX_HDR_VARIANT)
# if IUTEST_HAS_VARIADIC_TEMPLATES && defined(__has_include)
# if defined(__clang__) && (__clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 6))
Expand Down Expand Up @@ -432,6 +420,11 @@
# endif
#endif

#if !defined(IUTEST_HAS_STD_TO_CHARS)
# if defined(__cpp_lib_to_chars) && __cpp_lib_to_chars >= 201611
# define IUTEST_HAS_STD_TO_CHARS 1
# endif
#endif

// defaults for feature

Expand Down

0 comments on commit 9fd0f3b

Please sign in to comment.