Skip to content

Commit b1f8440

Browse files
-Fix R_NO_REMAP warning: "R_NO_REMAP" redefined compilation warning (#77)
* -Fix R_NO_REMAP `warning: "R_NO_REMAP" redefined` compilation warning by adding preprocessor guard * -Update NEWS --------- Co-authored-by: tylermorganwall <tylermorganwall@users.noreply.github.com>
1 parent 2de1797 commit b1f8440

File tree

4 files changed

+11
-1
lines changed

4 files changed

+11
-1
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: RcppThread
22
Title: R-Friendly Threading in C++
3-
Version: 2.1.7
3+
Version: 2.1.8
44
Authors@R: c(
55
person("Thomas", "Nagler",, "mail@tnagler.com", role = c("aut", "cre"),
66
comment = c(ORCID = "0000-0003-1855-0046"))

NEWS.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# RcppThread 2.1.8
2+
3+
BUG FIX
4+
5+
* Fixed compilation warning about R_NO_REMAP being defined multiple times (thanks @tylermorganwall)
6+
17
# RcppThread 2.1.7
28

39
BUG FIX

inst/include/RcppThread/RMonitor.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
#pragma once
88

99
// R API
10+
#ifndef R_NO_REMAP
1011
#define R_NO_REMAP
12+
#endif
1113
#include "Rinternals.h"
1214
#include "R.h"
1315

src/detectCores.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#include <thread>
22

3+
#ifndef R_NO_REMAP
34
#define R_NO_REMAP
5+
#endif
46

57
#include <R.h>
68
#include <Rdefines.h>

0 commit comments

Comments
 (0)