00001
00002
00003
00004
00005 #ifndef _MACROS_H
00006 #define _MACROS_H
00007
00008 #if defined _WIN32 || defined __CYGWIN__
00009 # ifdef EXPORT_SYMBOLS
00010 # ifdef __GNUC__
00011 # define DLL_PUBLIC __attribute__((dllexport))
00012 # else
00013 # define DLL_PUBLIC __declspec(dllexport)
00014 # endif
00015 # else
00016 # ifdef __GNUC__
00017 # define DLL_PUBLIC __attribute__((dllimport))
00018 # else
00019 # define DLL_PUBLIC __declspec(dllimport)
00020 # endif
00021 # endif // EXPORT_SYMBOLS
00022 # define DLL_LOCAL
00023 #else
00024 # if __GNUC__ >= 4
00025 # define DLL_PUBLIC __attribute__ ((visibility("default")))
00026 # define DLL_LOCAL __attribute__ ((visibility("hidden")))
00027 # else
00028 # define DLL_PUBLIC
00029 # define DLL_LOCAL
00030 # endif
00031 #endif
00032
00033
00034
00035 #endif
00036