Skip to content

Commit 1bab12a

Browse files
committed
Conditionally include IO stream related headers in formatter definitions
1 parent 5be2edf commit 1bab12a

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

fly/types/string/formatters.hpp

+9-3
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,25 @@
55
#include "fly/types/string/concepts.hpp"
66
#include "fly/types/string/detail/classifier.hpp"
77
#include "fly/types/string/detail/format_specifier.hpp"
8-
#include "fly/types/string/detail/stream_util.hpp"
98
#include "fly/types/string/detail/unicode.hpp"
109

10+
#if !defined(FLY_COMPILER_SUPPORTS_FP_CHARCONV)
11+
# include "fly/types/string/detail/stream_util.hpp"
12+
#endif
13+
1114
#include <array>
1215
#include <charconv>
1316
#include <cmath>
14-
#include <iomanip>
1517
#include <limits>
16-
#include <sstream>
1718
#include <string>
1819
#include <system_error>
1920
#include <type_traits>
2021

22+
#if !defined(FLY_COMPILER_SUPPORTS_FP_CHARCONV)
23+
# include <iomanip>
24+
# include <sstream>
25+
#endif
26+
2127
namespace fly {
2228

2329
/**

0 commit comments

Comments
 (0)