00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef SGE_EXPORT_HPP_INCLUDED
00022 #define SGE_EXPORT_HPP_INCLUDED
00023
00024 #include "config.h"
00025
00026 #ifdef SGE_SYMBOL
00027 # undef SGE_SYMBOL
00028 #endif
00029
00030 #ifdef SGE_EXPORT_SYMBOL
00031 # undef SGE_EXPORT_SYMBOL
00032 #endif
00033
00034 #ifdef SGE_IMPORT_SYMBOL
00035 # undef SGE_IMPORT_SYMBOL
00036 #endif
00037
00038 #if defined(_MSC_VER)
00039 # define SGE_EXPORT_SYMBOL __declspec(dllexport)
00040 # define SGE_IMPORT_SYMBOL __declspec(dllimport)
00041
00042 # ifdef SGE_EXPORTS
00043 # define SGE_SYMBOL SGE_EXPORT_SYMBOL
00044 # else
00045 # define SGE_SYMBOL SGE_IMPORT_SYMBOL
00046 # endif
00047
00048 # define SGE_CLASS_SYMBOL
00049 #elif defined(__GNUC__) && defined(SGE_HAVE_GCC_VISIBILITY)
00050 # define SGE_SYMBOL __attribute__ ((visibility("default")))
00051 # define SGE_EXPORT_SYMBOL SGE_SYMBOL
00052 # define SGE_CLASS_SYMBOL SGE_SYMBOL
00053 #else
00054 # define SGE_SYMBOL
00055 # define SGE_EXPORT_SYMBOL
00056 # define SGE_CLASS_SYMBOL
00057 #endif
00058
00059
00060 #endif // SGE_EXPORT_HPP_INCLUDED