change uint64_t to depend on utils

This commit is contained in:
Tianqi Chen 2014-08-26 20:08:13 -07:00
parent 3e5cb25830
commit d00f27dc6b
2 changed files with 2 additions and 3 deletions

View File

@ -213,7 +213,7 @@ extern "C" {
&olen); &olen);
FILE *fo = utils::FopenCheck(CHAR(asChar(fname)), "w"); FILE *fo = utils::FopenCheck(CHAR(asChar(fname)), "w");
for (size_t i = 0; i < olen; ++i) { for (size_t i = 0; i < olen; ++i) {
fprintf(fo, "booster[%lu]:\n", i); fprintf(fo, "booster[%u]:\n", static_cast<unsigned>(i));
fprintf(fo, "%s", res[i]); fprintf(fo, "%s", res[i]);
} }
fclose(fo); fclose(fo);

View File

@ -7,8 +7,7 @@
* can be used to create wrapper of other languages * can be used to create wrapper of other languages
*/ */
#include <cstdio> #include <cstdio>
// define uint64_t to be unsigned long #include "../src/utils/utils.h"
typedef unsigned long uint64_t;
#define XGB_DLL #define XGB_DLL
extern "C" { extern "C" {