Skip to content

Commit c63bae6

Browse files
authored
Condition define of no remap (#1296)
* Protect R_NO_REMAP (and MAXELTSIZE) as needed with R 4.4.0 * Roll micro version and date
1 parent 08093bc commit c63bae6

File tree

5 files changed

+20
-8
lines changed

5 files changed

+20
-8
lines changed

ChangeLog

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
2024-02-21 Dirk Eddelbuettel <[email protected]>
2+
3+
* DESCRIPTION (Version, Date): Roll micro version
4+
* inst/include/Rcpp/config.h (RCPP_DEV_VERSION): Idem
5+
6+
* inst/include/Rcpp/r/headers.h: Set R_NO_REMAP (and MAXELTSIZE)
7+
only if not already defined (as will be needed with R 4.4.0)
8+
19
2024-01-09 Dirk Eddelbuettel <[email protected]>
210

311
* README.md: Update usage numbers

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: Rcpp
22
Title: Seamless R and C++ Integration
3-
Version: 1.0.12
4-
Date: 2024-01-08
3+
Version: 1.0.12.1
4+
Date: 2024-02-21
55
Author: Dirk Eddelbuettel, Romain Francois, JJ Allaire, Kevin Ushey, Qiang Kou,
66
Nathan Russell, Inaki Ucar, Douglas Bates and John Chambers
77
Maintainer: Dirk Eddelbuettel <[email protected]>

R/Attributes.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
# Copyright (C) 2012 - 2022 JJ Allaire, Dirk Eddelbuettel and Romain Francois
3-
# Copyright (C) 2023 JJ Allaire, Dirk Eddelbuettel, Romain Francois and Iñaki Ucar
3+
# Copyright (C) 2023 - 2024 JJ Allaire, Dirk Eddelbuettel, Romain Francois and Iñaki Ucar
44
#
55
# This file is part of Rcpp.
66
#

inst/include/Rcpp/config.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
#define RCPP_VERSION_STRING "1.0.12"
3131

3232
// the current source snapshot (using four components, if a fifth is used in DESCRIPTION we ignore it)
33-
#define RCPP_DEV_VERSION RcppDevVersion(1,0,12,0)
34-
#define RCPP_DEV_VERSION_STRING "1.0.12.0"
33+
#define RCPP_DEV_VERSION RcppDevVersion(1,0,12,1)
34+
#define RCPP_DEV_VERSION_STRING "1.0.12.1"
3535

3636
#endif

inst/include/Rcpp/r/headers.h

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// headers.h: Rcpp R/C++ interface class library -- R headers
22
//
33
// Copyright (C) 2008 - 2009 Dirk Eddelbuettel
4-
// Copyright (C) 2009 - 2022 Dirk Eddelbuettel and Romain Francois
4+
// Copyright (C) 2009 - 2024 Dirk Eddelbuettel and Romain Francois
55
//
66
// This file is part of Rcpp.
77
//
@@ -22,8 +22,12 @@
2222
#define RCPP__R__HEADERS__H
2323

2424
// include R headers, but set R_NO_REMAP and access everything via Rf_ prefixes
25-
#define MAXELTSIZE 8192
26-
#define R_NO_REMAP
25+
#ifndef MAXELTSIZE
26+
#define MAXELTSIZE 8192
27+
#endif
28+
#ifndef R_NO_REMAP
29+
#define R_NO_REMAP
30+
#endif
2731

2832
// define strict headers for R to not clash on ERROR, MESSGAGE, etc
2933
#ifndef RCPP_NO_STRICT_R_HEADERS

0 commit comments

Comments
 (0)