00001 #ifndef PROTON_INTERNAL_EXPORT_HPP
00002 #define PROTON_INTERNAL_EXPORT_HPP
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00026
00028 #if defined(WIN32) && !defined(PN_CPP_DECLARE_STATIC)
00029
00030
00031
00032 # define PN_CPP_EXPORT __declspec(dllexport)
00033 # define PN_CPP_IMPORT __declspec(dllimport)
00034 # define PN_CPP_CLASS_EXPORT
00035 # define PN_CPP_CLASS_IMPORT
00036 #else
00037
00038
00039
00040 # define PN_CPP_EXPORT __attribute ((visibility ("default")))
00041 # define PN_CPP_IMPORT
00042 # define PN_CPP_CLASS_EXPORT __attribute ((visibility ("default")))
00043 # define PN_CPP_CLASS_IMPORT
00044 #endif
00045
00046
00047 #ifdef qpid_proton_cpp_EXPORTS
00048 # define PN_CPP_EXTERN PN_CPP_EXPORT
00049 # define PN_CPP_CLASS_EXTERN PN_CPP_CLASS_EXPORT
00050 #else
00051 # define PN_CPP_EXTERN PN_CPP_IMPORT
00052 # define PN_CPP_CLASS_EXTERN PN_CPP_CLASS_IMPORT
00053 #endif
00054
00056
00057 #endif // PROTON_INTERNAL_EXPORT_HPP