Skip to content

Commit 7b2a207

Browse files
authored
Refactor some R_ext includes (#1418)
* Refactor some R_ext includes * drop PrtUtil.h too
1 parent 2b0a44b commit 7b2a207

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

ChangeLog

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
2025-12-04 Iñaki Ucar <[email protected]>
2+
3+
* inst/include/Rcpp/r/headers.h: Include <R_ext/Visibility.h>
4+
* inst/include/RcppCommon.h: Drop <R_ext/Callbacks.h>, not used anymore
5+
and dropped from the API; drop <R_ext/Visibility.h>, included above
6+
* src/api.cpp: Drop <R_ext/PrtUtil.h>, dropped from the API
7+
18
2025-12-03 Dirk Eddelbuettel <[email protected]>
29

310
* DESCRIPTION (Version, Date): Roll micro version and date

inst/include/Rcpp/r/headers.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
//
33
// Copyright (C) 2008 - 2009 Dirk Eddelbuettel
44
// Copyright (C) 2009 - 2024 Dirk Eddelbuettel and Romain Francois
5+
// Copyright (C) 2025 Dirk Eddelbuettel, Romain Francois and Iñaki Ucar
56
//
67
// This file is part of Rcpp.
78
//
@@ -72,6 +73,7 @@
7273
#include <R_ext/Complex.h>
7374
#include <R_ext/Parse.h>
7475
#include <R_ext/Rdynload.h>
76+
#include <R_ext/Visibility.h>
7577
#include <Rversion.h>
7678

7779
/* Ensure NORET defined (normally provided by R headers with R >= 3.2.0) */

inst/include/RcppCommon.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,6 @@ namespace Rcpp {
7373
#include <typeinfo>
7474
#include <utility>
7575
#include <Rcpp/sprintf.h>
76-
#include <R_ext/Callbacks.h>
77-
#include <R_ext/Visibility.h>
7876
#include <Rcpp/utils/tinyformat.h>
7977

8078
#include <Rmath.h>

src/api.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
using namespace Rcpp;
2929

3030
#include "internal.h"
31-
#include <R_ext/PrtUtil.h>
3231

3332
#ifdef RCPP_HAS_DEMANGLING
3433
#include <cxxabi.h>

0 commit comments

Comments
 (0)