Skip to content

Commit 3998114

Browse files
author
ripley
committed
use Visibility.h
git-svn-id: https://svn.r-project.org/R/trunk@87907 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent c4804cc commit 3998114

File tree

4 files changed

+14
-2
lines changed

4 files changed

+14
-2
lines changed

src/appl/pretty.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* R : A Computer Language for Statistical Data Analysis
3-
* Copyright (C) 1995-2021 The R Core Team
3+
* Copyright (C) 1995-2025 The R Core Team
44
*
55
* This program is free software; you can redistribute it and/or modify
66
* it under the terms of the GNU General Public License as published by
@@ -63,11 +63,14 @@
6363
# include <R_ext/Print.h>
6464
#endif
6565

66+
#include <R_ext/Visibility.h>
67+
/*
6668
#ifdef HAVE_VISIBILITY_ATTRIBUTE
6769
# define attribute_hidden __attribute__ ((visibility ("hidden")))
6870
#else
6971
# define attribute_hidden
7072
#endif
73+
*/
7174

7275
attribute_hidden
7376
double R_pretty(double *lo, double *up, int *ndiv, int min_n,

src/include/R_ext/stats_package.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,15 @@
2626
#ifndef R_STATS_PACKAGE_H
2727
#define R_STATS_PACKAGE_H
2828
#include <Rconfig.h>
29+
#include <R_ext/Visibility.h>
2930

31+
/*
3032
#ifdef HAVE_VISIBILITY_ATTRIBUTE
3133
# define attribute_hidden __attribute__ ((visibility ("hidden")))
3234
#else
3335
# define attribute_hidden
3436
#endif
37+
*/
3538

3639
enum AlgType {NREG = 1, OPT = 2};
3740
/* 0-based indices into v */
@@ -52,7 +55,7 @@ enum IVPos {AI = 90, AM = 94, ALGSAV = 50, COVMAT = 25,
5255
attribute_hidden void
5356
S_Rf_divset(int alg, int iv[], int liv, int lv, double v[]);
5457

55-
attribute_hidden
58+
attribute_hidden void
5659
S_nlsb_iterate(double b[], double d[], double dr[], int iv[],
5760
int liv, int lv, int n, int nd, int p,
5861
double r[], double rd[], double v[], double x[]);

src/include/R_ext/stats_stubs.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,16 @@
2626
#include <Rconfig.h>
2727
#include <Rinternals.h>
2828
#include <R_ext/Rdynload.h>
29+
#include <R_ext/Visibility.h>
2930
#include <R_ext/stats_package.h>
3031

32+
/*
3133
#ifdef HAVE_VISIBILITY_ATTRIBUTE
3234
# define attribute_hidden __attribute__ ((visibility ("hidden")))
3335
#else
3436
# define attribute_hidden
3537
#endif
38+
*/
3639

3740
attribute_hidden void
3841
S_Rf_divset(int alg, int iv[], int liv, int lv, double v[])

src/main/rlocale.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,14 @@
3939
#include <config.h>
4040
#endif
4141

42+
#include <R_ext/Visibility.h>
43+
/*
4244
#ifdef HAVE_VISIBILITY_ATTRIBUTE
4345
# define attribute_hidden __attribute__ ((visibility ("hidden")))
4446
#else
4547
# define attribute_hidden
4648
#endif
49+
*/
4750

4851
#include <string.h>
4952
#include <stdlib.h>

0 commit comments

Comments
 (0)