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
00044 #ifndef CSTRING_INCL_IMPLICIT_LINK
00045 #define CSTRING_INCL_IMPLICIT_LINK
00046
00047
00048
00049
00050
00051 #ifndef CSTRING_DOCUMENTATION_SKIP_SECTION
00052 # define CSTRING_VER_CSTRING_H_IMPLICIT_LINK_MAJOR 1
00053 # define CSTRING_VER_CSTRING_H_IMPLICIT_LINK_MINOR 0
00054 # define CSTRING_VER_CSTRING_H_IMPLICIT_LINK_REVISION 2
00055 # define CSTRING_VER_CSTRING_H_IMPLICIT_LINK_EDIT 3
00056 #endif
00057
00058
00059
00060
00061
00062 #include <cstring/cstring.h>
00063
00064
00065
00066
00067
00068 #if defined(WIN32) || \
00069 defined(_WIN32)
00070
00071 # if defined(__BORLANDC__) || \
00072 \
00073 defined(__INTEL_COMPILER) || \
00074 defined(__MWERKS__) || \
00075 defined(_MSC_VER)
00076 # define CSTRING_IMPLICIT_LINK_SUPPORT
00077 # endif
00078
00079 #if defined(CSTRING_IMPLICIT_LINK_SUPPORT) && \
00080 defined(CSTRING_NO_IMPLICIT_LINK)
00081 # undef CSTRING_IMPLICIT_LINK_SUPPORT
00082 #endif
00083
00084 # if defined(CSTRING_IMPLICIT_LINK_SUPPORT)
00085
00086 # if defined(__BORLANDC__)
00087 # if __BORLANDC__ == 0x0550
00088 # define CSTRING_IMPL_LINK_COMPILER_NAME "bc55"
00089 # elif (__BORLANDC__ == 0x0551)
00090 # define CSTRING_IMPL_LINK_COMPILER_NAME "bc551"
00091 # elif (__BORLANDC__ == 0x0560)
00092 # define CSTRING_IMPL_LINK_COMPILER_NAME "bc56"
00093 # elif (__BORLANDC__ == 0x0564)
00094 # define CSTRING_IMPL_LINK_COMPILER_NAME "bc564"
00095 # else
00096 # error Unrecognised value of __BORLANDC__
00097 # endif
00098
00099
00100
00101
00102
00103
00104 # elif defined(__INTEL_COMPILER)
00105 # if (__INTEL_COMPILER == 600)
00106 # define CSTRING_IMPL_LINK_COMPILER_NAME "icl6"
00107 # elif (__INTEL_COMPILER == 700)
00108 # define CSTRING_IMPL_LINK_COMPILER_NAME "icl7"
00109 # elif (__INTEL_COMPILER == 800)
00110 # define CSTRING_IMPL_LINK_COMPILER_NAME "icl8"
00111 # else
00112 # error Unrecognised value of __INTEL_COMPILER
00113 # endif
00114
00115 # elif defined(__MWERKS__)
00116 # if ((__MWERKS__ & 0xFF00) == 0x2400)
00117 # define CSTRING_IMPL_LINK_COMPILER_NAME "cw7"
00118 # elif ((__MWERKS__ & 0xFF00) == 0x3000)
00119 # define CSTRING_IMPL_LINK_COMPILER_NAME "cw8"
00120 # elif ((__MWERKS__ & 0xFF00) == 0x3200)
00121 # define CSTRING_IMPL_LINK_COMPILER_NAME "cw9"
00122 # else
00123 # error Unrecognised value of __MWERKS__
00124 # endif
00125
00126 # elif defined(_MSC_VER)
00127 # if _MSC_VER == 1000
00128 # define CSTRING_IMPL_LINK_COMPILER_NAME "vc4"
00129 # elif _MSC_VER == 1020
00130 # define CSTRING_IMPL_LINK_COMPILER_NAME "vc42"
00131 # elif _MSC_VER == 1100
00132 # define CSTRING_IMPL_LINK_COMPILER_NAME "vc5"
00133 # elif _MSC_VER == 1200
00134 # define CSTRING_IMPL_LINK_COMPILER_NAME "vc6"
00135 # elif _MSC_VER == 1300
00136 # define CSTRING_IMPL_LINK_COMPILER_NAME "vc7"
00137 # elif _MSC_VER == 1310
00138 # define CSTRING_IMPL_LINK_COMPILER_NAME "vc71"
00139 # elif _MSC_VER == 1400
00140 # define CSTRING_IMPL_LINK_COMPILER_NAME "vc8"
00141 # else
00142 # error Unrecognised value of _MSC_VER
00143 # endif
00144
00145 # else
00146 # error Unrecognised compiler
00147 # endif
00148
00149
00150 # if defined(__MT__) || \
00151 defined(_REENTRANT) || \
00152 defined(_MT)
00153 # if defined(_DLL) || \
00154 defined(__DLL)
00155 # define CSTRING_IMPL_LINK_THREADING_TYPE ".dll"
00156 # else
00157 # define CSTRING_IMPL_LINK_THREADING_TYPE ".mt"
00158 # endif
00159 # else
00160 # define CSTRING_IMPL_LINK_THREADING_TYPE ""
00161 # endif
00162
00163
00164 # if !defined(NDEBUG) && \
00165 defined(_DEBUG)
00166 # define CSTRING_IMPL_LINK_DEBUG_TYPE ".debug"
00167 # else
00168 # define CSTRING_IMPL_LINK_DEBUG_TYPE ""
00169 # endif
00170
00171 # define CSTRING_IMPL_LINK_LIBRARY_BASENAME_s_(x) #x
00172 # define CSTRING_IMPL_LINK_LIBRARY_BASENAME_s(x) CSTRING_IMPL_LINK_LIBRARY_BASENAME_s_(x)
00173 # define CSTRING_IMPL_LINK_LIBRARY_BASENAME "cstring." CSTRING_IMPL_LINK_LIBRARY_BASENAME_s(CSTRING_VER_MAJOR) "."
00174
00175 # define CSTRING_IMPL_LINK_LIBRARY_NAME CSTRING_IMPL_LINK_LIBRARY_BASENAME CSTRING_IMPL_LINK_COMPILER_NAME CSTRING_IMPL_LINK_THREADING_TYPE CSTRING_IMPL_LINK_DEBUG_TYPE ".lib"
00176
00177 # pragma message("lib: " CSTRING_IMPL_LINK_LIBRARY_NAME)
00178
00179 # pragma comment(lib, CSTRING_IMPL_LINK_LIBRARY_NAME)
00180
00181 # endif
00182
00183 #endif
00184
00185
00186
00187 #endif
00188
00189