From 333577025e4d9f5d6003ec48338f15a8af2c6b59 Mon Sep 17 00:00:00 2001 From: shikokuchuo <53399081+shikokuchuo@users.noreply.github.com> Date: Fri, 6 Sep 2024 18:17:07 +0100 Subject: [PATCH] conditional defines --- .Rbuildignore | 2 ++ .gitignore | 2 ++ DESCRIPTION | 1 + src/secret.h | 4 ++++ 4 files changed, 9 insertions(+) diff --git a/.Rbuildignore b/.Rbuildignore index c5d92bf..24977be 100644 --- a/.Rbuildignore +++ b/.Rbuildignore @@ -7,3 +7,5 @@ ^pkgdown$ ^\.github$ ^codecov\.yml$ +^compile_commands\.json$ +^\.cache$ diff --git a/.gitignore b/.gitignore index 0d7f03b..35ba059 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,5 @@ .Ruserdata docs inst/doc +compile_commands.json +.cache diff --git a/DESCRIPTION b/DESCRIPTION index b4dc2d9..1774049 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -24,3 +24,4 @@ Encoding: UTF-8 Depends: R (>= 3.5) RoxygenNote: 7.3.2 +Config/build/compilation-database: true diff --git a/src/secret.h b/src/secret.h index 837d67e..613c5d0 100644 --- a/src/secret.h +++ b/src/secret.h @@ -20,8 +20,12 @@ #define SECRETBASE_H #include +#ifndef R_NO_REMAP #define R_NO_REMAP +#endif +#ifndef STRICT_R_HEADERS #define STRICT_R_HEADERS +#endif #include #include #include