Skip to content

Commit

Permalink
[R-package] move Rinternals.h closer to where it is used (#4248)
Browse files Browse the repository at this point in the history
  • Loading branch information
jameslamb authored May 2, 2021
1 parent 66ee291 commit d29f2c2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 0 additions & 4 deletions R-package/src/R_object_helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@

#include <cstdint>

#define R_NO_REMAP
#define R_USE_C99_IN_CXX
#include <Rinternals.h>

#define NAMED_BITS 16
struct lgbm_sxpinfo {
unsigned int type : 5;
Expand Down
5 changes: 5 additions & 0 deletions R-package/src/lightgbm_R.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@
#define LIGHTGBM_R_H_

#include <LightGBM/c_api.h>

#define R_NO_REMAP
#define R_USE_C99_IN_CXX
#include <Rinternals.h>

#include "R_object_helper.h"

/*!
Expand Down

0 comments on commit d29f2c2

Please sign in to comment.