The R Project SVN R

Rev

Rev 82430 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
15716 ripley 1
/*
2
 *  R : A Computer Language for Statistical Data Analysis
82430 ripley 3
 *  Copyright (C) 2001, 2022  The R Core Team.
15716 ripley 4
 *
71657 plummer 5
 *  This header file is free software; you can redistribute it and/or modify
15716 ripley 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
 *
71657 plummer 10
 *  This file is part of R. R is distributed under the terms of the
11
 *  GNU General Public License, either Version 2, June 1991 or Version 3,
12
 *  June 2007. See doc/COPYRIGHTS for details of the copyright status of R.
13
 *
15716 ripley 14
 *  This program is distributed in the hope that it will be useful,
15
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
16
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17
 *  GNU Lesser General Public License for more details.
18
 *
19
 *  You should have received a copy of the GNU Lesser General Public License
42308 ripley 20
 *  along with this program; if not, a copy is available at
68949 ripley 21
 *  https://www.R-project.org/Licenses/
15716 ripley 22
 */
23
 
60253 ripley 24
/* Included by R.h: API on Windows */
25
 
29923 ripley 26
/* don't disallow including this one more than once */
15909 ripley 27
 
29923 ripley 28
/* This is intended to be called from other header files, so not callable
29
   from C++ */
30
 
15909 ripley 31
#undef LibExtern
15716 ripley 32
#undef LibImport
33
#undef LibExport
34
 
65805 ripley 35
#ifdef _WIN32 /* _WIN32 as does not depend on config.h */
15716 ripley 36
#define LibImport __declspec(dllimport)
84952 kalibera 37
/* exporting is now done via .def file in R */
38
#define LibExport /* __declspec(dllexport) */
15716 ripley 39
#else
40
#define LibImport
41
#define LibExport
42
#endif
43
 
44
#ifdef __MAIN__
45
#define LibExtern LibExport
46
#define extern
47
#elif defined(R_DLL_BUILD)
48
#define LibExtern extern
49
#else
50
#define LibExtern extern LibImport
51
#endif