CXXR (C++ R)
Visibility.h
1 /*
2  * R : A Computer Language for Statistical Data Analysis
3  * Copyright (C) 2008 the R Core Team
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU Lesser General Public License as published by
7  * the Free Software Foundation; either version 2.1 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public License
16  * along with this program; if not, a copy is available at
17  * http://www.r-project.org/Licenses/
18  */
19 
20 #ifndef R_EXT_VISIBILITY_H_
21 #define R_EXT_VISIBILITY_H_
22 
23 #include <Rconfig.h>
24 
25 #ifdef HAVE_VISIBILITY_ATTRIBUTE
26 # define attribute_visible __attribute__ ((visibility ("default")))
27 # define attribute_hidden __attribute__ ((visibility ("hidden")))
28 #else
29 # define attribute_visible
30 # define attribute_hidden
31 #endif
32 
33 #endif /* R_EXT_VISIBILITY_H_ */