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
d4ef3156
Commit
d4ef3156
authored
Aug 10, 2017
by
i3v
Committed by
Guolin Ke
Aug 18, 2017
Browse files
Fix __func__ is not defined in MSVS2013 (#819)
parent
c3c1708c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
0 deletions
+8
-0
include/LightGBM/meta.h
include/LightGBM/meta.h
+4
-0
src/metric/xentropy_metric.hpp
src/metric/xentropy_metric.hpp
+2
-0
src/objective/xentropy_objective.hpp
src/objective/xentropy_objective.hpp
+2
-0
No files found.
include/LightGBM/meta.h
View file @
d4ef3156
...
...
@@ -28,6 +28,10 @@ std::function<void(const std::vector<std::pair<int, double>>&, double* output)>;
#define NO_SPECIFIC (-1)
#if (_MSC_VER <= 1800)
#define __func__ __FUNCTION__
#endif
}
// namespace LightGBM
#endif // LightGBM_META_H_
src/metric/xentropy_metric.hpp
View file @
d4ef3156
#ifndef LIGHTGBM_METRIC_XENTROPY_METRIC_HPP_
#define LIGHTGBM_METRIC_XENTROPY_METRIC_HPP_
#include <LightGBM/meta.h>
#include <LightGBM/utils/log.h>
#include <LightGBM/utils/common.h>
...
...
src/objective/xentropy_objective.hpp
View file @
d4ef3156
#ifndef LIGHTGBM_OBJECTIVE_XENTROPY_OBJECTIVE_HPP_
#define LIGHTGBM_OBJECTIVE_XENTROPY_OBJECTIVE_HPP_
#include <LightGBM/meta.h>
#include <LightGBM/utils/common.h>
#include <LightGBM/objective_function.h>
...
...
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