Skip to content

Commit 500152c

Browse files
committed
Include guards
1 parent 869dc09 commit 500152c

4 files changed

Lines changed: 10 additions & 1 deletion

File tree

src/s3cpp/auth.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ class AWSSigV4Signer {
3030
std::string hex(const unsigned char *hash);
3131
std::string url_encode(const std::string &value);
3232
std::string getTimestamp();
33+
[[nodiscard]] std::string getRegion() { return aws_region; }
3334

3435
private:
3536
std::string access_key;

src/s3cpp/s3.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#ifndef S3CPP_S3
2+
#define S3CPP_S3
3+
14
#include <expected>
25
#include <s3cpp/auth.h>
36
#include <s3cpp/httpclient.h>
@@ -149,4 +152,7 @@ class ListObjectsPaginator {
149152
bool hasMorePages_ = true;
150153
std::string continuationToken_;
151154
};
152-
} // namespace s3cpp
155+
156+
} // namespace S3CPP_S3
157+
158+
#endif

test/auth_test.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,3 +129,4 @@ TEST(AUTH, MinIOBasicRequest) {
129129
HttpResponse resp = result.value();
130130
EXPECT_EQ(resp.status(), 200);
131131
}
132+

test/aws_test.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,4 @@ TEST(AWS, AWSAnonymousCredsListBucket) {
2626
EXPECT_EQ(res->Contents[1].Size, 4579163978);
2727
EXPECT_EQ(res->Contents[1].StorageClass, "STANDARD");
2828
}
29+

0 commit comments

Comments
 (0)