diff options
author | thegeorg <thegeorg@yandex-team.ru> | 2022-03-20 18:18:47 +0300 |
---|---|---|
committer | thegeorg <thegeorg@yandex-team.ru> | 2022-03-20 18:18:47 +0300 |
commit | e7aae615944a704e320aaea56e0cebfa2dcf2959 (patch) | |
tree | b4344342333eba39cd91d76d364dea8b23d1fe51 /contrib/libs/curl/lib/curl_config.h | |
parent | 5ce3a9912f6b93afbdd0bb3ae96aed39aa616340 (diff) | |
download | ydb-e7aae615944a704e320aaea56e0cebfa2dcf2959.tar.gz |
util: Do not define SIZEOF_SIZE_T, as it is not used in our codebase
codesearch shows [114 usages](https://a.yandex-team.ru/search?search=%5CbSIZEOF_SIZE_T%5Cb,,jC,arcadia,,500) of this macro outside of contrib.
None of these usages looks as being util-dependent.
Defining this in util triggers `-Wmacro-redefined` whenever `` gets included after our ``.
UPD:
It turns out that our curl was using this define for a reason,
so I have implemented an util-independent solution instead.
ref:c80e45c42a9c0ec76eda33e63b560b285e1ee502
Diffstat (limited to 'contrib/libs/curl/lib/curl_config.h')
-rw-r--r-- | contrib/libs/curl/lib/curl_config.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/contrib/libs/curl/lib/curl_config.h b/contrib/libs/curl/lib/curl_config.h index e58dec7079..f6dc46ab83 100644 --- a/contrib/libs/curl/lib/curl_config.h +++ b/contrib/libs/curl/lib/curl_config.h @@ -22,6 +22,14 @@ # include "curl_config-musl.h" #endif +#if defined(__i686__) || defined(_M_IX86) || defined(__arm__) || defined(__ARM__) +# include "curl_config-x32.h" +#endif + +#if defined(__x86_64__) || defined(_M_X64) || defined(__aarch64__) || defined(__powerpc64__) +# include "curl_config-x64.h" +#endif + // Do not misrepresent host on Android and iOS. #undef OS #define OS "arcadia" |