Skip to content

Commit

Permalink
馃挌 clocale header needed
Browse files Browse the repository at this point in the history
  • Loading branch information
ThePhD committed Aug 13, 2021
1 parent 0b8af05 commit 4630fe6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 1 addition & 3 deletions include/ztd/text/detail/posix.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@

// clang-foramt off

#include <clocale>
#if ZTD_IS_ON(ZTD_LANGINFO_I_)
extern "C" {
#include <langinfo.h>
Expand All @@ -50,9 +51,6 @@ extern "C" {
extern "C" {
#include <nl_langinfo.h>
}
#else
// we got nothing, so cstdlib it is
#include <clocale>
#endif

// clang-format on
Expand Down
3 changes: 3 additions & 0 deletions include/ztd/text/impl/wide_execution_cwchar.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@
#include <cwchar>
#include <iterator>
#include <utility>
#if ZTD_IS_ON(ZTD_LOCALE_DEPENDENT_WIDE_EXECUTION_I_)
#include <clocale>
#endif

namespace ztd { namespace text {
ZTD_TEXT_INLINE_ABI_NAMESPACE_OPEN_I_
Expand Down

0 comments on commit 4630fe6

Please sign in to comment.