Path: blob/main/devel/R-cran-Rcpp/files/patch-inst_include_Rcpp_exceptions__impl.h
46590 views
--- inst/include/Rcpp/exceptions_impl.h.orig 2026-04-23 14:10:21 UTC1+++ inst/include/Rcpp/exceptions_impl.h2@@ -2,7 +2,7 @@3//4// Copyright (C) 2012 - 2019 Dirk Eddelbuettel and Romain Francois5// Copyright (C) 2020 - 2024 Dirk Eddelbuettel, Romain Francois, and Joshua N. Pritikin6-// Copyright (C) 2025 Dirk Eddelbuettel, Romain Francois, Joshua N. Pritikin, and Iñaki Ucar7+// Copyright (C) 2025 - 2026 Dirk Eddelbuettel, Romain Francois, Joshua N. Pritikin, and Iñaki Ucar8//9// This file is part of Rcpp.10//11@@ -23,15 +23,33 @@12#define Rcpp__exceptions_impl__h1314// enable demangler on platforms where execinfo.h is present15+// and that are not actively blacklisted16#ifndef RCPP_DEMANGLER_ENABLED17-# define RCPP_DEMANGLER_ENABLED 018-# if defined __has_include19-# if __has_include (<execinfo.h>)20-# include <execinfo.h>21-# undef RCPP_DEMANGLER_ENABLED22-# define RCPP_DEMANGLER_ENABLED 123+// set a fallback default24+#define RCPP_DEMANGLER_ENABLED 025+# if defined(_WIN32) || \26+ defined(__FreeBSD__) || \27+ defined(__NetBSD__) || \28+ defined(__OpenBSD__) || \29+ defined(__DragonFly__) || \30+ defined(__CYGWIN__) || \31+ defined(__sun) || \32+ defined(_AIX) || \33+ defined(__MUSL__) || \34+ defined(__HAIKU__) || \35+ defined(__ANDROID__)36+// nothing to do here so just redefining37+# undef RCPP_DEMANGLER_ENABLED38+# define RCPP_DEMANGLER_ENABLED 039+# elif defined __has_include40+// if we can test for headers41+# if __has_include (<execinfo.h>)42+// if we have the header, include and use it43+# include <execinfo.h>44+# undef RCPP_DEMANGLER_ENABLED45+# define RCPP_DEMANGLER_ENABLED 146+# endif47# endif48-# endif49#endif5051namespace Rcpp {525354