1 /* -*-C-*-
2 
3 // Copyright (C) 2004
4 // Christian Stimming <stimming@tuhh.de>
5 
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public License as
8 // published by the Free Software Foundation; either version 2, or (at
9 // your option) any later version.
10 
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 // GNU Lesser General Public License for more details.
15 
16 // You should have received a copy of the GNU Lesser General Public License along
17 // with this library; see the file COPYING.  If not, write to the Free
18 // Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
19 // USA.
20 
21 //      LAPACK++ (V. 1.1)
22 //      (C) 1992-1996 All Rights Reserved.
23 */
24 
25 
26 /*  Linkage names between C, C++, and Fortran (platform dependent) */
27 
28 /** @file
29  * @brief Platform-dependent macro definitions
30  */
31 
32 #ifndef _ARCH_H_
33 #define _ARCH_H_
34 
35 
36 #if  defined(RIOS) && !defined(CLAPACK)
37 # define F77NAME(x) x
38 #else
39 # define F77NAME(x) x##_
40 #endif
41 
42 #if defined(SGI) && !defined(SGI_DEC)
43 # define SGI_DEC
44 # ifdef __cplusplus
45 extern "C" {
46 # endif
mkidxname()47     void mkidxname() {}
mkdatname()48     void mkdatname() {}
49 # ifdef __cplusplus
50 }
51 # endif
52 #endif
53 
54 /* Needed for windows DLLs */
55 #ifndef DLLIMPORT
56 #  if defined( __declspec ) | defined ( _MSC_VER )
57 /*     _MSC_VER checks for Microsoft Visual C++. */
58 /*      Microsoft Visual C++ 7.1  _MSC_VER = 1310 */
59 /*      Microsoft Visual C++ 7.0  _MSC_VER = 1300 */
60 /*      Microsoft Visual C++ 6.0  _MSC_VER = 1200 */
61 /*      Microsoft Visual C++ 5.0  _MSC_VER = 1100 */
62 #    if BUILDING_LAPACK_DLL
63 #      define DLLIMPORT __declspec (dllexport)
64 #    else     /* Not BUILDING_LAPACK_DLL */
65 #      define DLLIMPORT __declspec (dllimport)
66 #    endif    /* Not BUILDING_LAPACK_DLL */
67 #  else
68 #    define DLLIMPORT
69 #  endif    /* __declspec */
70 #endif  /* DLLIMPORT */
71 
72 #endif /* _ARCH_H_ */
73