From 3f04d9d2d43b824cebdc24ff182fd6e994381021 Mon Sep 17 00:00:00 2001 From: /dev/urandom Date: Mon, 29 Aug 2016 10:18:58 +0200 Subject: [PATCH] Fix build with DISABLE_BASE128 set. --- src/Utils/String.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Utils/String.cpp b/src/Utils/String.cpp index 368a5e14..f2c8c7e3 100644 --- a/src/Utils/String.cpp +++ b/src/Utils/String.cpp @@ -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() {