COVISE Core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
coFileExport.h
Go to the documentation of this file.
1 /* This file is part of COVISE.
2 
3  You can use it under the terms of the GNU Lesser General Public License
4  version 2.1 or later, see lgpl-2.1.txt.
5 
6  * License: LGPL 2+ */
7 
8 #ifndef CO_FILE_EXPORT_H
9 #define CO_FILE_EXPORT_H
10 
11 /* ---------------------------------------------------------------------- //
12 // //
13 // //
14 // Description: DLL EXPORT/IMPORT specification and type definitions //
15 // //
16 // //
17 // //
18 // //
19 // //
20 // //
21 // (C)2003 HLRS //
22 // Author: Uwe Woessner, Ruth Lang //
23 // Date: 30.10.03 V1.0 */
24 
25 #if defined(_WIN32) && !defined(NODLL)
26 #define COIMPORT __declspec(dllimport)
27 #define COEXPORT __declspec(dllexport)
28 
29 #elif defined(__GNUC__) && __GNUC__ >= 4 && !defined(CO_ia64icc)
30 #define COEXPORT __attribute__((visibility("default")))
31 #define COIMPORT COEXPORT
32 
33 #else
34 #define COIMPORT
35 #define COEXPORT
36 #endif
37 
38 #if defined(COVISE_FILE)
39 #define FILEEXPORT COEXPORT
40 #else
41 #define FILEEXPORT COIMPORT
42 #endif
43 
44 #endif