change uint64_t to depend on utils
This commit is contained in:
parent
3e5cb25830
commit
d00f27dc6b
@ -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);
|
||||||
|
|||||||
@ -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" {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user