00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048 #ifndef _SNX_PLUGIN_CONFIG_H_
00049 #define _SNX_PLUGIN_CONFIG_H_
00050
00051
00052 #undef PACKAGE_BUGREPORT
00053 #undef PACKAGE_NAME
00054 #undef PACKAGE_STRING
00055 #undef PACKAGE_TARNAME
00056 #undef PACKAGE_VERSION
00057
00058 #include <snx/snxConfig.h>
00059
00060
00061
00062
00063
00064
00065
00066
00067 #ifdef WIN32
00068
00069 # if defined(__GNUC__)
00070 # undef _declspec
00071 # define _declspec(x) __declspec(x)
00072 # endif
00073
00074 # define SNX_PLUGIN_EXPORT(__type) _declspec(dllexport) __type
00075 # define SNX_PLUGIN_EXPORT_CLASS _declspec(dllexport)
00076 # define SNX_PLUGIN_EXPORT_DATA(__type) _declspec(dllexport) __type
00077 # define SNX_PLUGIN_IMPORT(__type) _declspec(dllimport) __type
00078 # define SNX_PLUGIN_IMPORT_DATA(__type) _declspec(dllimport) __type
00079 # define SNX_PLUGIN_IMPORT_CLASS _declspec(dllimport)
00080
00081 # define SNX_PLUGIN_EXTERN(__type) extern _declspec(dllexport) __type
00082 # define SNX_PLUGIN_IMPLEMENT(__type) _declspec(dllexport) __type
00083 # define SNX_PLUGIN_EXTERN_DATA(__type) extern _declspec(dllexport) __type
00084 # define SNX_PLUGIN_IMPLEMENT_DATA(__type) _declspec(dllexport) __type
00085
00086 # define SNX_PLUGIN_CALLBACK
00087 # define SNX_PLUGIN_CALLBACK_DECL
00088 # define SNX_PLUGIN_STATIC_CALLBACK(__x) static __x
00089
00090 #else
00091
00092 # define SNX_PLUGIN_EXPORT(__type) __type
00093 # define SNX_PLUGIN_EXPORT_CLASS
00094 # define SNX_PLUGIN_EXPORT_DATA(__type) __type
00095 # define SNX_PLUGIN_IMPORT(__type) __type
00096 # define SNX_PLUGIN_IMPORT_CLASS
00097 # define SNX_PLUGIN_IMPORT_DATA(__type) __type
00098
00099 # define SNX_PLUGIN_EXTERN(__type) extern __type
00100 # define SNX_PLUGIN_IMPLEMENT(__type) __type
00101 # define SNX_PLUGIN_EXTERN_DATA(__type) extern __type
00102 # define SNX_PLUGIN_IMPLEMENT_DATA(__type) __type
00103
00104 # define SNX_PLUGIN_CALLBACK
00105 # define SNX_PLUGIN_CALLBACK_DECL
00106 # define SNX_PLUGIN_STATIC_CALLBACK(__x) static __x
00107
00108 #endif
00109
00110 #ifdef _SNX_PLUGIN_BUILD_
00111 # define SNX_PLUGIN_API(__type) SNX_PLUGIN_EXPORT(__type)
00112 # define SNX_PLUGIN_CLASS_API SNX_PLUGIN_EXPORT_CLASS
00113 # define SNX_PLUGIN_DATA_API(__type) SNX_PLUGIN_EXPORT_DATA(__type)
00114 #else
00115 # define SNX_PLUGIN_API(__type) SNX_PLUGIN_IMPORT(__type)
00116 # define SNX_PLUGIN_CLASS_API SNX_PLUGIN_IMPORT_CLASS
00117 # define SNX_PLUGIN_DATA_API(__type) SNX_PLUGIN_IMPORT_DATA(__type)
00118 #endif
00119
00120 #endif