123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262 |
- #ifndef __CURL_CURLRULES_H
- #define __CURL_CURLRULES_H
- #ifndef CURL_SIZEOF_LONG
- # error "CURL_SIZEOF_LONG definition is missing!"
- Error Compilation_aborted_CURL_SIZEOF_LONG_is_missing
- #endif
- #ifndef CURL_TYPEOF_CURL_SOCKLEN_T
- # error "CURL_TYPEOF_CURL_SOCKLEN_T definition is missing!"
- Error Compilation_aborted_CURL_TYPEOF_CURL_SOCKLEN_T_is_missing
- #endif
- #ifndef CURL_SIZEOF_CURL_SOCKLEN_T
- # error "CURL_SIZEOF_CURL_SOCKLEN_T definition is missing!"
- Error Compilation_aborted_CURL_SIZEOF_CURL_SOCKLEN_T_is_missing
- #endif
- #ifndef CURL_TYPEOF_CURL_OFF_T
- # error "CURL_TYPEOF_CURL_OFF_T definition is missing!"
- Error Compilation_aborted_CURL_TYPEOF_CURL_OFF_T_is_missing
- #endif
- #ifndef CURL_FORMAT_CURL_OFF_T
- # error "CURL_FORMAT_CURL_OFF_T definition is missing!"
- Error Compilation_aborted_CURL_FORMAT_CURL_OFF_T_is_missing
- #endif
- #ifndef CURL_FORMAT_CURL_OFF_TU
- # error "CURL_FORMAT_CURL_OFF_TU definition is missing!"
- Error Compilation_aborted_CURL_FORMAT_CURL_OFF_TU_is_missing
- #endif
- #ifndef CURL_FORMAT_OFF_T
- # error "CURL_FORMAT_OFF_T definition is missing!"
- Error Compilation_aborted_CURL_FORMAT_OFF_T_is_missing
- #endif
- #ifndef CURL_SIZEOF_CURL_OFF_T
- # error "CURL_SIZEOF_CURL_OFF_T definition is missing!"
- Error Compilation_aborted_CURL_SIZEOF_CURL_OFF_T_is_missing
- #endif
- #ifndef CURL_SUFFIX_CURL_OFF_T
- # error "CURL_SUFFIX_CURL_OFF_T definition is missing!"
- Error Compilation_aborted_CURL_SUFFIX_CURL_OFF_T_is_missing
- #endif
- #ifndef CURL_SUFFIX_CURL_OFF_TU
- # error "CURL_SUFFIX_CURL_OFF_TU definition is missing!"
- Error Compilation_aborted_CURL_SUFFIX_CURL_OFF_TU_is_missing
- #endif
- #define CurlchkszEQ(t, s) sizeof(t) == s ? 1 : -1
- #define CurlchkszGE(t1, t2) sizeof(t1) >= sizeof(t2) ? 1 : -1
- typedef char
- __curl_rule_01__
- [CurlchkszEQ(long, CURL_SIZEOF_LONG)];
- typedef char
- __curl_rule_02__
- [CurlchkszEQ(curl_off_t, CURL_SIZEOF_CURL_OFF_T)];
- typedef char
- __curl_rule_03__
- [CurlchkszGE(curl_off_t, long)];
- typedef char
- __curl_rule_04__
- [CurlchkszEQ(curl_socklen_t, CURL_SIZEOF_CURL_SOCKLEN_T)];
- typedef char
- __curl_rule_05__
- [CurlchkszGE(curl_socklen_t, int)];
- #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus) || \
- defined(__HP_aCC) || defined(__BORLANDC__) || defined(__LCC__) || \
- defined(__POCC__) || defined(__SALFORDC__) || defined(__HIGHC__) || \
- defined(__ILEC400__)
-
- #define CURL_ISOCPP
- #else
-
- #undef CURL_ISOCPP
- #endif
- #if defined(__BORLANDC__) && (__BORLANDC__ == 0x0551)
- # define __CURL_OFF_T_C_HLPR2(x) x
- # define __CURL_OFF_T_C_HLPR1(x) __CURL_OFF_T_C_HLPR2(x)
- # define CURL_OFF_T_C(Val) __CURL_OFF_T_C_HLPR1(Val) ## \
- __CURL_OFF_T_C_HLPR1(CURL_SUFFIX_CURL_OFF_T)
- # define CURL_OFF_TU_C(Val) __CURL_OFF_T_C_HLPR1(Val) ## \
- __CURL_OFF_T_C_HLPR1(CURL_SUFFIX_CURL_OFF_TU)
- #else
- # ifdef CURL_ISOCPP
- # define __CURL_OFF_T_C_HLPR2(Val,Suffix) Val ## Suffix
- # else
- # define __CURL_OFF_T_C_HLPR2(Val,Suffix) ValSuffix
- # endif
- # define __CURL_OFF_T_C_HLPR1(Val,Suffix) __CURL_OFF_T_C_HLPR2(Val,Suffix)
- # define CURL_OFF_T_C(Val) __CURL_OFF_T_C_HLPR1(Val,CURL_SUFFIX_CURL_OFF_T)
- # define CURL_OFF_TU_C(Val) __CURL_OFF_T_C_HLPR1(Val,CURL_SUFFIX_CURL_OFF_TU)
- #endif
- #undef CurlchkszEQ
- #undef CurlchkszGE
- #undef CURL_PULL_WS2TCPIP_H
- #undef CURL_PULL_SYS_TYPES_H
- #undef CURL_PULL_SYS_SOCKET_H
- #undef CURL_PULL_SYS_POLL_H
- #undef CURL_PULL_STDINT_H
- #undef CURL_PULL_INTTYPES_H
- #undef CURL_TYPEOF_CURL_SOCKLEN_T
- #undef CURL_TYPEOF_CURL_OFF_T
- #ifdef CURL_NO_OLDIES
- #undef CURL_FORMAT_OFF_T
- #endif
- #endif
|