Skip to content

Commit cc131a3

Browse files
committed
Fix duplicate symbols
1 parent b61b3d5 commit cc131a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/xtd.core/include/xtd/internal/__print.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#include "../null_pointer_exception.hpp"
1717

1818
/// @cond
19-
void __xtd_print_with_file_write__(bool new_line, FILE* file, xtd::string&& s) {
19+
inline void __xtd_print_with_file_write__(bool new_line, FILE* file, xtd::string&& s) {
2020
if (!file) throw xtd::null_pointer_exception {};
2121
if (new_line) s += xtd::environment::new_line();
2222
if (fwrite(s.c_str(), 1, s.length(), file) != s.length()) {
@@ -26,7 +26,7 @@ void __xtd_print_with_file_write__(bool new_line, FILE* file, xtd::string&& s) {
2626
}
2727
}
2828

29-
void __xtd_print_with_ostream_write__(bool new_line, std::ostream& os, xtd::string&& s) {
29+
inline void __xtd_print_with_ostream_write__(bool new_line, std::ostream& os, xtd::string&& s) {
3030
if (!os.good()) throw xtd::io::io_exception {};
3131
if (new_line) s += xtd::environment::new_line();
3232
os.write(s.c_str(), s.length());

0 commit comments

Comments
 (0)