Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tianlh
LightGBM-DCU
Commits
fb37e507
Unverified
Commit
fb37e507
authored
May 29, 2022
by
Nikita Titov
Committed by
GitHub
May 28, 2022
Browse files
Remove leftovers after the drop of Solaris support (#5248)
* Update tree.cpp * Update common.h * Update common.h
parent
23da5fc5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
9 deletions
+1
-9
include/LightGBM/utils/common.h
include/LightGBM/utils/common.h
+1
-5
src/io/tree.cpp
src/io/tree.cpp
+0
-4
No files found.
include/LightGBM/utils/common.h
View file @
fb37e507
...
...
@@ -29,11 +29,9 @@
#include <utility>
#include <vector>
#if (!((defined(sun) || defined(__sun)) && (defined(__SVR4) || defined(__svr4__))))
#define FMT_HEADER_ONLY
#include "../../../external_libs/fmt/include/fmt/format.h"
#endif
#include "../../../external_libs/fast_double_parser/include/fast_double_parser.h"
#include "../../../external_libs/fmt/include/fmt/format.h"
#ifdef _MSC_VER
#include <intrin.h>
...
...
@@ -1192,7 +1190,6 @@ inline static std::vector<T> StringToArray(const std::string& str, char delimite
return
ret
;
}
#if (!((defined(sun) || defined(__sun)) && (defined(__SVR4) || defined(__svr4__))))
/*!
* Safely formats a value onto a buffer according to a format string and null-terminates it.
*
...
...
@@ -1257,7 +1254,6 @@ inline static std::string ArrayToString(const std::vector<T>& arr, size_t n) {
}
return
str_buf
.
str
();
}
#endif // (!((defined(sun) || defined(__sun)) && (defined(__SVR4) || defined(__svr4__))))
}
// namespace CommonC
...
...
src/io/tree.cpp
View file @
fb37e507
...
...
@@ -340,11 +340,7 @@ std::string Tree::ToString() const {
std
::
stringstream
str_buf
;
Common
::
C_stringstream
(
str_buf
);
#if ((defined(sun) || defined(__sun)) && (defined(__SVR4) || defined(__svr4__)))
using
CommonLegacy
::
ArrayToString
;
// Slower & unsafe regarding locale.
#else
using
CommonC
::
ArrayToString
;
#endif
str_buf
<<
"num_leaves="
<<
num_leaves_
<<
'\n'
;
str_buf
<<
"num_cat="
<<
num_cat_
<<
'\n'
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment