Skip to content

Commit

Permalink
fixed missing cstdint includes
Browse files Browse the repository at this point in the history
  • Loading branch information
vogma committed Sep 30, 2024
1 parent f479bfd commit 0b642b6
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/A.Hristov/ahristov.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <string>
#include <cstdint>
/**
* Given a string, this function will encode it in 64b (with padding)
*/
Expand All @@ -7,4 +8,4 @@ std::string encodeBase64(const std::string& binaryText);
/**
* Given a 64b padding-encoded string, this function will decode it.
*/
std::string decodeBase64(const std::string& base64Text);
std::string decodeBase64(const std::string& base64Text);
1 change: 1 addition & 0 deletions src/ElegantDice/ElegantDice.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

#include <vector>
#include <string>
#include <cstdint>

void base64_encode(std::string & out, const std::vector<std::uint8_t>& buf);
void base64_encode(std::string & out, const std::uint8_t* buf, size_t bufLen);
Expand Down
1 change: 1 addition & 0 deletions src/omnifarious/omnifarious.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#pragma once

#include <string>
#include <cstdint>
::std::string base64_encode(const ::std::string &bindata);
::std::string base64_encode(const char *bytes, size_t length);
::std::string base64_decode(const ::std::string &ascdata);
3 changes: 2 additions & 1 deletion src/tomykaria/tomykaria.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
*/
//https://gist.github.com/tomykaira/f0fd86b6c73063283afe550bc5d77594
#include <string>
#include <cstdint>

namespace macaron {

Expand Down Expand Up @@ -126,4 +127,4 @@ class Base64 {
}
};

} // namespace macaron
} // namespace macaron

0 comments on commit 0b642b6

Please sign in to comment.