aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorp01arst0rm <polar@ever3st.com>2021-04-23 07:30:05 +0100
committerp01arst0rm <polar@ever3st.com>2021-04-23 07:30:05 +0100
commit45473d02c95cdf20c782d5814f22fc1de5e36b2f (patch)
treefda456c23d6c43d85e9f03b14a478d9a981f1ce0 /src
parentd9864be4b757468d33bc49edddce5e4f04ef4b90 (diff)
unified macro style for ENABLE_S3
Diffstat (limited to 'src')
-rw-r--r--src/libstore/filetransfer.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstore/filetransfer.cc b/src/libstore/filetransfer.cc
index 514ab3bf9..2cf35ec83 100644
--- a/src/libstore/filetransfer.cc
+++ b/src/libstore/filetransfer.cc
@@ -7,7 +7,7 @@
#include "finally.hh"
#include "callback.hh"
-#ifdef ENABLE_S3
+#if ENABLE_S3
#include <aws/core/client/ClientConfiguration.h>
#endif
@@ -665,7 +665,7 @@ struct curlFileTransfer : public FileTransfer
writeFull(wakeupPipe.writeSide.get(), " ");
}
-#ifdef ENABLE_S3
+#if ENABLE_S3
std::tuple<std::string, std::string, Store::Params> parseS3Uri(std::string uri)
{
auto [path, params] = splitUriAndParams(uri);
@@ -688,7 +688,7 @@ struct curlFileTransfer : public FileTransfer
if (hasPrefix(request.uri, "s3://")) {
// FIXME: do this on a worker thread
try {
-#ifdef ENABLE_S3
+#if ENABLE_S3
auto [bucketName, key, params] = parseS3Uri(request.uri);
std::string profile = get(params, "profile").value_or("");