From 9a75aa888ba231905ac9b8c0d416976f19004f66 Mon Sep 17 00:00:00 2001 From: Mike McLaughlin Date: Tue, 1 Sep 2015 09:47:47 -0700 Subject: Fix FreeBSD build after merge of my changes from the ProjectK branch. --- src/ToolBox/SOS/Strike/sildasm.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/ToolBox') diff --git a/src/ToolBox/SOS/Strike/sildasm.cpp b/src/ToolBox/SOS/Strike/sildasm.cpp index 6875436616..c78378769e 100644 --- a/src/ToolBox/SOS/Strike/sildasm.cpp +++ b/src/ToolBox/SOS/Strike/sildasm.cpp @@ -624,6 +624,13 @@ void DecodeDynamicIL(BYTE *data, ULONG Size, DacpObjectData& tokenArray) /******************************************************************************/ // CQuickBytes utilities +#ifdef FEATURE_PAL +// Don't need the implementations since sos references the dac module containing them. +char* asString(CQuickBytes *out); +void appendStr(CQuickBytes *out, const char* str, unsigned len = -1); +void appendChar(CQuickBytes *out, char chr); +void insertStr(CQuickBytes *out, const char* str); +#else static char* asString(CQuickBytes *out) { SIZE_T oldSize = out->Size(); out->ReSize(oldSize + 1); @@ -658,6 +665,7 @@ static void insertStr(CQuickBytes *out, const char* str) { memcpy(out->Ptr(), str, len); // Note no trailing null! } +#endif static void appendStrNum(CQuickBytes *out, int num) { char buff[16]; -- cgit v1.2.3