pitrou commented on code in PR #46742: URL: https://github.com/apache/arrow/pull/46742#discussion_r2163716263
########## cpp/src/arrow/filesystem/s3fs.cc: ########## @@ -78,42 +83,18 @@ #include <aws/s3/model/PutObjectResult.h> #include <aws/s3/model/UploadPartRequest.h> -// AWS_SDK_VERSION_{MAJOR,MINOR,PATCH} are available since 1.9.7. -#if defined(AWS_SDK_VERSION_MAJOR) && defined(AWS_SDK_VERSION_MINOR) && \ - defined(AWS_SDK_VERSION_PATCH) // Redundant "(...)" are for suppressing "Weird number of spaces at // line-start. Are you using a 2-space indent? [whitespace/indent] // [3]" errors... -# define ARROW_AWS_SDK_VERSION_CHECK(major, minor, patch) \ - ((AWS_SDK_VERSION_MAJOR > (major) || \ - (AWS_SDK_VERSION_MAJOR == (major) && AWS_SDK_VERSION_MINOR > (minor)) || \ - ((AWS_SDK_VERSION_MAJOR == (major) && AWS_SDK_VERSION_MINOR == (minor) && \ - AWS_SDK_VERSION_PATCH >= (patch))))) -#else -# define ARROW_AWS_SDK_VERSION_CHECK(major, minor, patch) 0 -#endif - -// This feature is available since 1.9.0 but -// AWS_SDK_VERSION_{MAJOR,MINOR,PATCH} are available since 1.9.7. So -// we can't use this feature for [1.9.0,1.9.6]. If it's a problem, -// please report it to our issue tracker. -#if ARROW_AWS_SDK_VERSION_CHECK(1, 9, 0) -# define ARROW_S3_HAS_CRT -#endif - -#if ARROW_AWS_SDK_VERSION_CHECK(1, 10, 0) -# define ARROW_S3_HAS_S3CLIENT_CONFIGURATION -#endif - -#ifdef ARROW_S3_HAS_CRT -# include <aws/crt/io/Bootstrap.h> -# include <aws/crt/io/EventLoopGroup.h> -# include <aws/crt/io/HostResolver.h> -#endif - -#ifdef ARROW_S3_HAS_S3CLIENT_CONFIGURATION -# include <aws/s3/S3ClientConfiguration.h> -# include <aws/s3/S3EndpointProvider.h> +#define ARROW_AWS_SDK_VERSION_CHECK(major, minor, patch) \ + ((AWS_SDK_VERSION_MAJOR > (major) || \ + (AWS_SDK_VERSION_MAJOR == (major) && AWS_SDK_VERSION_MINOR > (minor)) || \ + ((AWS_SDK_VERSION_MAJOR == (major) && AWS_SDK_VERSION_MINOR == (minor) && \ + AWS_SDK_VERSION_PATCH >= (patch))))) + +// Keep this in sync with ThirdPartyToolChain.cmake +#if !defined(AWS_SDK_VERSION_MAJOR) || !ARROW_AWS_SDK_VERSION_CHECK(1, 11, 0) +# error "AWS SDK version 1.11.0 or later is required" #endif Review Comment: I thought this might be useful for Meson. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org