Go to the documentation of this file.00001 #ifndef __CURL_CURLRULES_H
00002 #define __CURL_CURLRULES_H
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
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078 #ifndef CURL_SIZEOF_LONG
00079 # error "CURL_SIZEOF_LONG definition is missing!"
00080 Error Compilation_aborted_CURL_SIZEOF_LONG_is_missing
00081 #endif
00082
00083 #ifndef CURL_TYPEOF_CURL_SOCKLEN_T
00084 # error "CURL_TYPEOF_CURL_SOCKLEN_T definition is missing!"
00085 Error Compilation_aborted_CURL_TYPEOF_CURL_SOCKLEN_T_is_missing
00086 #endif
00087
00088 #ifndef CURL_SIZEOF_CURL_SOCKLEN_T
00089 # error "CURL_SIZEOF_CURL_SOCKLEN_T definition is missing!"
00090 Error Compilation_aborted_CURL_SIZEOF_CURL_SOCKLEN_T_is_missing
00091 #endif
00092
00093 #ifndef CURL_TYPEOF_CURL_OFF_T
00094 # error "CURL_TYPEOF_CURL_OFF_T definition is missing!"
00095 Error Compilation_aborted_CURL_TYPEOF_CURL_OFF_T_is_missing
00096 #endif
00097
00098 #ifndef CURL_FORMAT_CURL_OFF_T
00099 # error "CURL_FORMAT_CURL_OFF_T definition is missing!"
00100 Error Compilation_aborted_CURL_FORMAT_CURL_OFF_T_is_missing
00101 #endif
00102
00103 #ifndef CURL_FORMAT_CURL_OFF_TU
00104 # error "CURL_FORMAT_CURL_OFF_TU definition is missing!"
00105 Error Compilation_aborted_CURL_FORMAT_CURL_OFF_TU_is_missing
00106 #endif
00107
00108 #ifndef CURL_FORMAT_OFF_T
00109 # error "CURL_FORMAT_OFF_T definition is missing!"
00110 Error Compilation_aborted_CURL_FORMAT_OFF_T_is_missing
00111 #endif
00112
00113 #ifndef CURL_SIZEOF_CURL_OFF_T
00114 # error "CURL_SIZEOF_CURL_OFF_T definition is missing!"
00115 Error Compilation_aborted_CURL_SIZEOF_CURL_OFF_T_is_missing
00116 #endif
00117
00118 #ifndef CURL_SUFFIX_CURL_OFF_T
00119 # error "CURL_SUFFIX_CURL_OFF_T definition is missing!"
00120 Error Compilation_aborted_CURL_SUFFIX_CURL_OFF_T_is_missing
00121 #endif
00122
00123 #ifndef CURL_SUFFIX_CURL_OFF_TU
00124 # error "CURL_SUFFIX_CURL_OFF_TU definition is missing!"
00125 Error Compilation_aborted_CURL_SUFFIX_CURL_OFF_TU_is_missing
00126 #endif
00127
00128
00129
00130
00131
00132 #define CurlchkszEQ(t, s) sizeof(t) == s ? 1 : -1
00133
00134 #define CurlchkszGE(t1, t2) sizeof(t1) >= sizeof(t2) ? 1 : -1
00135
00136
00137
00138
00139
00140
00141 typedef char
00142 __curl_rule_01__
00143 [CurlchkszEQ(long, CURL_SIZEOF_LONG)];
00144
00145
00146
00147
00148
00149
00150
00151 typedef char
00152 __curl_rule_02__
00153 [CurlchkszEQ(curl_off_t, CURL_SIZEOF_CURL_OFF_T)];
00154
00155
00156
00157
00158
00159
00160
00161 typedef char
00162 __curl_rule_03__
00163 [CurlchkszGE(curl_off_t, long)];
00164
00165
00166
00167
00168
00169
00170
00171 typedef char
00172 __curl_rule_04__
00173 [CurlchkszEQ(curl_socklen_t, CURL_SIZEOF_CURL_SOCKLEN_T)];
00174
00175
00176
00177
00178
00179
00180
00181 typedef char
00182 __curl_rule_05__
00183 [CurlchkszGE(curl_socklen_t, int)];
00184
00185
00186
00187
00188
00189
00190
00191
00192
00193
00194
00195
00196
00197
00198
00199
00200
00201
00202
00203
00204 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus) || \
00205 defined(__HP_aCC) || defined(__BORLANDC__) || defined(__LCC__) || \
00206 defined(__POCC__) || defined(__SALFORDC__) || defined(__HIGHC__) || \
00207 defined(__ILEC400__)
00208
00209 #define CURL_ISOCPP
00210 #else
00211
00212 #undef CURL_ISOCPP
00213 #endif
00214
00215
00216
00217
00218
00219 #if defined(__BORLANDC__) && (__BORLANDC__ == 0x0551)
00220 # define __CURL_OFF_T_C_HLPR2(x) x
00221 # define __CURL_OFF_T_C_HLPR1(x) __CURL_OFF_T_C_HLPR2(x)
00222 # define CURL_OFF_T_C(Val) __CURL_OFF_T_C_HLPR1(Val) ## \
00223 __CURL_OFF_T_C_HLPR1(CURL_SUFFIX_CURL_OFF_T)
00224 # define CURL_OFF_TU_C(Val) __CURL_OFF_T_C_HLPR1(Val) ## \
00225 __CURL_OFF_T_C_HLPR1(CURL_SUFFIX_CURL_OFF_TU)
00226 #else
00227 # ifdef CURL_ISOCPP
00228 # define __CURL_OFF_T_C_HLPR2(Val,Suffix) Val ## Suffix
00229 # else
00230 # define __CURL_OFF_T_C_HLPR2(Val,Suffix) ValSuffix
00231 # endif
00232 # define __CURL_OFF_T_C_HLPR1(Val,Suffix) __CURL_OFF_T_C_HLPR2(Val,Suffix)
00233 # define CURL_OFF_T_C(Val) __CURL_OFF_T_C_HLPR1(Val,CURL_SUFFIX_CURL_OFF_T)
00234 # define CURL_OFF_TU_C(Val) __CURL_OFF_T_C_HLPR1(Val,CURL_SUFFIX_CURL_OFF_TU)
00235 #endif
00236
00237
00238
00239
00240
00241 #undef CurlchkszEQ
00242 #undef CurlchkszGE
00243
00244
00245
00246
00247
00248 #undef CURL_PULL_WS2TCPIP_H
00249 #undef CURL_PULL_SYS_TYPES_H
00250 #undef CURL_PULL_SYS_SOCKET_H
00251 #undef CURL_PULL_SYS_POLL_H
00252 #undef CURL_PULL_STDINT_H
00253 #undef CURL_PULL_INTTYPES_H
00254
00255 #undef CURL_TYPEOF_CURL_SOCKLEN_T
00256 #undef CURL_TYPEOF_CURL_OFF_T
00257
00258 #ifdef CURL_NO_OLDIES
00259 #undef CURL_FORMAT_OFF_T
00260 #endif
00261
00262 #endif