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 #ifndef _SNX_CONFIG_H_
00043 #define _SNX_CONFIG_H_
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056 #include <snx/snxDefines.h>
00057
00058
00059
00060 #undef PACKAGE_BUGREPORT
00061 #undef PACKAGE_NAME
00062 #undef PACKAGE_STRING
00063 #undef PACKAGE_TARNAME
00064 #undef PACKAGE_VERSION
00065
00066 #ifdef _DEBUG
00067 # define SNX_DEBUG
00068 #else
00069 # define SNX_OPT
00070 #endif
00071
00072 #ifdef WIN32
00073
00074 #define WIN32_LEAN_AND_MEAN
00075
00076
00077 #pragma warning(disable:4786)
00078
00079 #include <windows.h>
00080
00081 #endif
00082
00083
00084
00085
00086
00087
00088
00089
00090 #ifdef WIN32
00091
00092 # if defined(__GNUC__)
00093 # undef _declspec
00094 # define _declspec(x) __declspec(x)
00095 # endif
00096
00097 # define SNX_EXPORT(__type) _declspec(dllexport) __type
00098 # define SNX_EXPORT_CLASS _declspec(dllexport)
00099 # define SNX_EXPORT_DATA(__type) _declspec(dllexport) __type
00100 # define SNX_IMPORT(__type) _declspec(dllimport) __type
00101 # define SNX_IMPORT_DATA(__type) _declspec(dllimport) __type
00102 # define SNX_IMPORT_CLASS _declspec(dllimport)
00103
00104 # define SNX_EXTERN(__type) extern _declspec(dllexport) __type
00105 # define SNX_IMPLEMENT(__type) _declspec(dllexport) __type
00106 # define SNX_EXTERN_DATA(__type) extern _declspec(dllexport) __type
00107 # define SNX_IMPLEMENT_DATA(__type) _declspec(dllexport) __type
00108
00109 # define SNX_CALLBACK
00110 # define SNX_CALLBACK_DECL
00111 # define SNX_STATIC_CALLBACK(__x) static __x
00112
00113 #else
00114
00115 # define SNX_EXPORT(__type) __type
00116 # define SNX_EXPORT_CLASS
00117 # define SNX_EXPORT_DATA(__type) __type
00118 # define SNX_IMPORT(__type) __type
00119 # define SNX_IMPORT_CLASS
00120 # define SNX_IMPORT_DATA(__type) __type
00121
00122 # define SNX_EXTERN(__type) extern __type
00123 # define SNX_IMPLEMENT(__type) __type
00124 # define SNX_EXTERN_DATA(__type) extern __type
00125 # define SNX_IMPLEMENT_DATA(__type) __type
00126
00127 # define SNX_CALLBACK
00128 # define SNX_CALLBACK_DECL
00129 # define SNX_STATIC_CALLBACK(__x) static __x
00130
00131 #endif
00132
00133 #ifdef _SNX_BUILD_
00134 # define SNX_API(__type) SNX_EXPORT(__type)
00135 # define SNX_CLASS_API SNX_EXPORT_CLASS
00136 # define SNX_DATA_API(__type) SNX_EXPORT_DATA(__type)
00137 #else
00138 # define SNX_API(__type) SNX_IMPORT(__type)
00139 # define SNX_CLASS_API SNX_IMPORT_CLASS
00140 # define SNX_DATA_API(__type) SNX_IMPORT_DATA(__type)
00141 #endif
00142
00143 #endif