Fix build with DISABLE_BASE128 set.

This commit is contained in:
/dev/urandom 2016-08-29 10:18:58 +02:00
parent 9b87ca8ff7
commit 3f04d9d2d4
No known key found for this signature in database
GPG Key ID: 41322B973E0F295E

View File

@ -1,5 +1,7 @@
#include "STDInclude.hpp"
#ifndef DISABLE_BASE128
#include "base128.h"
#endif
namespace Utils
{
@ -132,6 +134,7 @@ namespace Utils
return EncodeBase64(input.c_str(), input.size());
}
#ifndef DISABLE_BASE128
// Encodes a given string in Base128
std::string EncodeBase128(const std::string& input) {
auto encoder = new base128();
@ -146,6 +149,7 @@ namespace Utils
delete encoder;
return retval;
}
#endif
// Generates a UUID and returns the string representation of it
std::string GenerateUUIDString() {