cmake build system (#1314)
* Changed c api to compile under MSVC * Include functional.h header for MSVC * Add cmake build
This commit is contained in:
@@ -22,6 +22,7 @@ XGB_EXTERN_C {
|
||||
#else
|
||||
#define XGB_DLL XGB_EXTERN_C
|
||||
#endif
|
||||
|
||||
// manually define unsign long
|
||||
typedef unsigned long bst_ulong; // NOLINT(*)
|
||||
|
||||
|
||||
@@ -16,6 +16,10 @@
|
||||
#include "./data.h"
|
||||
#include "./tree_model.h"
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#include <functional>
|
||||
#endif
|
||||
|
||||
namespace xgboost {
|
||||
/*!
|
||||
* \brief interface of tree update module, that performs update of a tree.
|
||||
|
||||
Reference in New Issue
Block a user