RAPI
R_ext/Visibility.h
Go to the documentation of this file.
00001 /*
00002  *  R : A Computer Language for Statistical Data Analysis
00003  *  Copyright (C) 2008    the R Core Team
00004  *
00005  *  This program is free software; you can redistribute it and/or modify
00006  *  it under the terms of the GNU Lesser General Public License as published by
00007  *  the Free Software Foundation; either version 2.1 of the License, or
00008  *  (at your option) any later version.
00009  *
00010  *  This program is distributed in the hope that it will be useful,
00011  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  *  GNU Lesser General Public License for more details.
00014  *
00015  *  You should have received a copy of the GNU Lesser General Public License
00016  *  along with this program; if not, a copy is available at
00017  *  https://www.R-project.org/Licenses/
00018  */
00019 
00020 /*
00021   Definitions controlling visibility on some platforms.
00022 
00023   Part of the API.
00024 */
00025 
00026 #ifndef R_EXT_VISIBILITY_H_
00027 #define R_EXT_VISIBILITY_H_
00028 
00029 #include <Rconfig.h>
00030 
00031 #ifdef HAVE_VISIBILITY_ATTRIBUTE
00032 # define attribute_visible __attribute__ ((visibility ("default")))
00033 # define attribute_hidden __attribute__ ((visibility ("hidden")))
00034 #else
00035 # define attribute_visible
00036 # define attribute_hidden
00037 #endif
00038 
00039 #endif /* R_EXT_VISIBILITY_H_ */
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines