Menge Plugin Examples
A Collection of Example Plugins for the Menge Framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
GCFConfig.h
Go to the documentation of this file.
1 
6 #ifndef __GCF_CONFIG_H__
7 #define __GCF_CONFIG_H__
8 
9 
10 // Now set up compiler-dependent export/import symbols
11 
12 #if defined(_MSC_VER)
13 
14  #if defined( GCF_STATICLIB )
15  #define GCF_API
16  #else
17  #if defined( GCF_EXPORT )
18  // We are building the DLL, export the symbols tagged like this
19  #define GCF_API __declspec(dllexport)
20  #else
21  // If we are consuming the DLL, import the symbols tagged like this
22  #define GCF_API __declspec(dllimport)
23  #endif
24  #endif
25 
26 #elif defined(__GNUC__)
27 
28  #if defined( GCF_STATICLIB )
29  #define GCF_API
30  #else
31  #if defined( GCF_EXPORT )
32  #define GCF_API __attribute__ ((visibility ("default")))
33  #else
34  // If you use -fvisibility=hidden in GCC, exception handling and RTTI
35  // would break if visibility wasn't set during export _and_ import
36  // because GCC would immediately forget all type infos encountered.
37  // See http://gcc.gnu.org/wiki/Visibility
38  #define GCF_API __attribute__ ((visibility ("default")))
39  #endif
40  #endif
41 
42 #else
43 
44  #error Unknown compiler, please implement shared library macros
45 
46 #endif // Compiler-detection
47 
48 #endif // __GCF_CONFIG_H__