Skip to content

Commit

Permalink
Move macro FMT_MSVC_STL_UPDATE to ostream.h.
Browse files Browse the repository at this point in the history
  • Loading branch information
YexuanXiao committed Dec 21, 2024
1 parent 1154e2f commit 9830407
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
7 changes: 0 additions & 7 deletions include/fmt/base.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,6 @@
#else
# define FMT_LIBCPP_VERSION 0
#endif
#ifdef _MSVC_STL_UPDATE
# define FMT_MSVC_STL_UPDATE _MSVC_STL_UPDATE
#elif defined(_MSC_VER) && _MSC_VER < 1912 // VS 15.5
# define FMT_MSVC_STL_UPDATE _MSVC_LANG
#else
# define FMT_MSVC_STL_UPDATE 0
#endif

// Detect __has_*.
#ifdef __has_feature
Expand Down
8 changes: 8 additions & 0 deletions include/fmt/ostream.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@

#include "chrono.h" // formatbuf

#ifdef _MSVC_STL_UPDATE
# define FMT_MSVC_STL_UPDATE _MSVC_STL_UPDATE
#elif defined(_MSC_VER) && _MSC_VER < 1912 // VS 15.5
# define FMT_MSVC_STL_UPDATE _MSVC_LANG
#else
# define FMT_MSVC_STL_UPDATE 0
#endif

FMT_BEGIN_NAMESPACE
namespace detail {

Expand Down

0 comments on commit 9830407

Please sign in to comment.