Skip to content

Commit

Permalink
fixup! Alter test for std::put_time to work on clang+libstdc++
Browse files Browse the repository at this point in the history
  • Loading branch information
CelticMinstrel committed Dec 16, 2016
1 parent dab5d57 commit 5f1cc58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gettext_boost.cpp
Expand Up @@ -437,7 +437,7 @@ std::string strftime(const std::string& format, const std::tm* time)
std::basic_ostringstream<char> dummy;
dummy.imbue(get_manager().get_locale());
// See utils/io.hpp for explanation of this check
#if (defined(__clang__) && !__has_include(<experimental/any>) || (defined(__GNUC__) && __GNUC__ < 5)
#if (defined(__clang__) && !__has_include(<experimental/any>)) || (defined(__GNUC__) && __GNUC__ < 5)
dummy << bl::as::ftime(format) << mktime(const_cast<std::tm*>(time));
#else
dummy << std::put_time(time, format.c_str());
Expand Down

0 comments on commit 5f1cc58

Please sign in to comment.