From 0326ab110caad0e364c7dd52443c33049be0a274 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Thu, 12 Nov 2015 02:02:03 -0800 Subject: [PATCH] Add another hastily and poorly-thought-out #ifdef. --- ldid.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ldid.cpp b/ldid.cpp index 0d240c2..0854474 100644 --- a/ldid.cpp +++ b/ldid.cpp @@ -907,6 +907,7 @@ struct CodesignAllocation { } }; +#ifndef LDID_NOTOOLS class File { private: int file_; @@ -1005,6 +1006,7 @@ class Map { return std::string(static_cast(data_), size_); } }; +#endif namespace ldid { @@ -1408,6 +1410,7 @@ class HashProxy : } }; +#ifndef LDID_NOTOOLS static bool Starts(const std::string &lhs, const std::string &rhs) { return lhs.size() >= rhs.size() && lhs.compare(0, rhs.size(), rhs) == 0; } @@ -1462,6 +1465,7 @@ static void Commit(const std::string &path, const std::string &temp) { _syscall(rename(temp.c_str(), path.c_str())); } +#endif namespace ldid { @@ -1593,6 +1597,7 @@ void Sign(const void *idata, size_t isize, std::streambuf &output, const std::st })); } +#ifndef LDID_NOTOOLS static void Unsign(void *idata, size_t isize, std::streambuf &output) { Allocate(idata, isize, output, fun([](size_t size) -> size_t { return 0; @@ -1688,6 +1693,7 @@ bool DiskFolder::Open(const std::string &path, const Functor &)> &)>&code) { Find(path, "", code); } +#endif SubFolder::SubFolder(Folder &parent, const std::string &path) : parent_(parent), @@ -1742,6 +1748,7 @@ void UnionFolder::Find(const std::string &path, const Functor