From d29f2c2af30ec21f0934d0f2089956edd2a3888e Mon Sep 17 00:00:00 2001 From: James Lamb Date: Sun, 2 May 2021 18:04:23 -0500 Subject: [PATCH] [R-package] move Rinternals.h closer to where it is used (#4248) --- R-package/src/R_object_helper.h | 4 ---- R-package/src/lightgbm_R.h | 5 +++++ 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/R-package/src/R_object_helper.h b/R-package/src/R_object_helper.h index ce8a326a82f4..a51927baf428 100644 --- a/R-package/src/R_object_helper.h +++ b/R-package/src/R_object_helper.h @@ -15,10 +15,6 @@ #include -#define R_NO_REMAP -#define R_USE_C99_IN_CXX -#include - #define NAMED_BITS 16 struct lgbm_sxpinfo { unsigned int type : 5; diff --git a/R-package/src/lightgbm_R.h b/R-package/src/lightgbm_R.h index c42dfcc42098..c262c3172ca4 100644 --- a/R-package/src/lightgbm_R.h +++ b/R-package/src/lightgbm_R.h @@ -6,6 +6,11 @@ #define LIGHTGBM_R_H_ #include + +#define R_NO_REMAP +#define R_USE_C99_IN_CXX +#include + #include "R_object_helper.h" /*!