Skip to content

Commit

Permalink
Condition define of no remap (#1296)
Browse files Browse the repository at this point in the history
* Protect R_NO_REMAP (and MAXELTSIZE) as needed with R 4.4.0

* Roll micro version and date
  • Loading branch information
eddelbuettel authored Feb 21, 2024
1 parent 08093bc commit c63bae6
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 8 deletions.
8 changes: 8 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
2024-02-21 Dirk Eddelbuettel <[email protected]>

* DESCRIPTION (Version, Date): Roll micro version
* inst/include/Rcpp/config.h (RCPP_DEV_VERSION): Idem

* inst/include/Rcpp/r/headers.h: Set R_NO_REMAP (and MAXELTSIZE)
only if not already defined (as will be needed with R 4.4.0)

2024-01-09 Dirk Eddelbuettel <[email protected]>

* README.md: Update usage numbers
Expand Down
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: Rcpp
Title: Seamless R and C++ Integration
Version: 1.0.12
Date: 2024-01-08
Version: 1.0.12.1
Date: 2024-02-21
Author: Dirk Eddelbuettel, Romain Francois, JJ Allaire, Kevin Ushey, Qiang Kou,
Nathan Russell, Inaki Ucar, Douglas Bates and John Chambers
Maintainer: Dirk Eddelbuettel <[email protected]>
Expand Down
2 changes: 1 addition & 1 deletion R/Attributes.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

# Copyright (C) 2012 - 2022 JJ Allaire, Dirk Eddelbuettel and Romain Francois
# Copyright (C) 2023 JJ Allaire, Dirk Eddelbuettel, Romain Francois and Iñaki Ucar
# Copyright (C) 2023 - 2024 JJ Allaire, Dirk Eddelbuettel, Romain Francois and Iñaki Ucar
#
# This file is part of Rcpp.
#
Expand Down
4 changes: 2 additions & 2 deletions inst/include/Rcpp/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#define RCPP_VERSION_STRING "1.0.12"

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

#endif
10 changes: 7 additions & 3 deletions inst/include/Rcpp/r/headers.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// headers.h: Rcpp R/C++ interface class library -- R headers
//
// Copyright (C) 2008 - 2009 Dirk Eddelbuettel
// Copyright (C) 2009 - 2022 Dirk Eddelbuettel and Romain Francois
// Copyright (C) 2009 - 2024 Dirk Eddelbuettel and Romain Francois
//
// This file is part of Rcpp.
//
Expand All @@ -22,8 +22,12 @@
#define RCPP__R__HEADERS__H

// include R headers, but set R_NO_REMAP and access everything via Rf_ prefixes
#define MAXELTSIZE 8192
#define R_NO_REMAP
#ifndef MAXELTSIZE
#define MAXELTSIZE 8192
#endif
#ifndef R_NO_REMAP
#define R_NO_REMAP
#endif

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

0 comments on commit c63bae6

Please sign in to comment.