Fix build with DISABLE_BASE128 set.
This commit is contained in:
parent
9b87ca8ff7
commit
3f04d9d2d4
@ -1,5 +1,7 @@
|
|||||||
#include "STDInclude.hpp"
|
#include "STDInclude.hpp"
|
||||||
|
#ifndef DISABLE_BASE128
|
||||||
#include "base128.h"
|
#include "base128.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace Utils
|
namespace Utils
|
||||||
{
|
{
|
||||||
@ -132,6 +134,7 @@ namespace Utils
|
|||||||
return EncodeBase64(input.c_str(), input.size());
|
return EncodeBase64(input.c_str(), input.size());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef DISABLE_BASE128
|
||||||
// Encodes a given string in Base128
|
// Encodes a given string in Base128
|
||||||
std::string EncodeBase128(const std::string& input) {
|
std::string EncodeBase128(const std::string& input) {
|
||||||
auto encoder = new base128();
|
auto encoder = new base128();
|
||||||
@ -146,6 +149,7 @@ namespace Utils
|
|||||||
delete encoder;
|
delete encoder;
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
// Generates a UUID and returns the string representation of it
|
// Generates a UUID and returns the string representation of it
|
||||||
std::string GenerateUUIDString() {
|
std::string GenerateUUIDString() {
|
||||||
|
Loading…
Reference in New Issue
Block a user