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:
RAMitchell
2016-07-03 14:07:35 +12:00
committed by Tianqi Chen
parent 3b73824842
commit 93196eb811
7 changed files with 162 additions and 72 deletions

View File

@@ -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(*)

View File

@@ -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.