The R Project SVN R

Rev

Rev 59039 | 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
 *
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
42308 ripley 16
 *  along with this program; if not, a copy is available at
17
 *  http://www.r-project.org/Licenses/
15716 ripley 18
 */
19
 
60253 ripley 20
/* Included by R.h: API on Windows */
21
 
29923 ripley 22
/* don't disallow including this one more than once */
15909 ripley 23
 
29923 ripley 24
/* This is intended to be called from other header files, so not callable
25
   from C++ */
26
 
15909 ripley 27
#undef LibExtern
15716 ripley 28
#undef LibImport
29
#undef LibExport
30
 
42738 ripley 31
/* Don't try to include CYGWIN here: decorating some symbols breaks
32
   the auto-export that it relies on, even if R_DLL_BUILD were set. */
15716 ripley 33
#ifdef WIN32 /* WIN32 as does not depend on config.h */
34
#define LibImport __declspec(dllimport)
35
#define LibExport __declspec(dllexport)
36
#else
37
#define LibImport
38
#define LibExport
39
#endif
40
 
41
#ifdef __MAIN__
42
#define LibExtern LibExport
43
#define extern
44
#elif defined(R_DLL_BUILD)
45
#define LibExtern extern
46
#else
47
#define LibExtern extern LibImport
48
#endif