The R Project SVN R

Rev

Rev 68949 | Go to most recent revision | 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
59039 ripley 3
 *  Copyright (C) 2001, 2004  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
 
42738 ripley 35
/* Don't try to include CYGWIN here: decorating some symbols breaks
36
   the auto-export that it relies on, even if R_DLL_BUILD were set. */
65805 ripley 37
#ifdef _WIN32 /* _WIN32 as does not depend on config.h */
15716 ripley 38
#define LibImport __declspec(dllimport)
39
#define LibExport __declspec(dllexport)
40
#else
41
#define LibImport
42
#define LibExport
43
#endif
44
 
45
#ifdef __MAIN__
46
#define LibExtern LibExport
47
#define extern
48
#elif defined(R_DLL_BUILD)
49
#define LibExtern extern
50
#else
51
#define LibExtern extern LibImport
52
#endif