-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcoFileExport.h
44 lines (35 loc) · 1.61 KB
/
coFileExport.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/* This file is part of COVISE.
You can use it under the terms of the GNU Lesser General Public License
version 2.1 or later, see lgpl-2.1.txt.
* License: LGPL 2+ */
#ifndef CO_FILE_EXPORT_H
#define CO_FILE_EXPORT_H
/* ---------------------------------------------------------------------- //
// //
// //
// Description: DLL EXPORT/IMPORT specification and type definitions //
// //
// //
// //
// //
// //
// //
// (C)2003 HLRS //
// Author: Uwe Woessner, Ruth Lang //
// Date: 30.10.03 V1.0 */
#if defined(_WIN32) && !defined(NODLL)
#define COIMPORT __declspec(dllimport)
#define COEXPORT __declspec(dllexport)
#elif (defined(__GNUC__) && __GNUC__ >= 4) || defined(__clang__)
#define COEXPORT __attribute__((visibility("default")))
#define COIMPORT COEXPORT
#else
#define COIMPORT
#define COEXPORT
#endif
#if defined(COVISE_FILE)
#define FILEEXPORT COEXPORT
#else
#define FILEEXPORT COIMPORT
#endif
#endif