diff options
Diffstat (limited to 'src/VBox/Runtime/common/string/stringalloc.cpp')
-rw-r--r-- | src/VBox/Runtime/common/string/stringalloc.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/VBox/Runtime/common/string/stringalloc.cpp b/src/VBox/Runtime/common/string/stringalloc.cpp index be7d983eb..25ab57713 100644 --- a/src/VBox/Runtime/common/string/stringalloc.cpp +++ b/src/VBox/Runtime/common/string/stringalloc.cpp @@ -31,7 +31,9 @@ #include <iprt/string.h> #include "internal/iprt.h" -#include <iprt/alloca.h> +#ifndef IN_RING0 +# include <iprt/alloca.h> +#endif #include <iprt/assert.h> #include <iprt/mem.h> #include <iprt/err.h> @@ -174,6 +176,11 @@ RTDECL(int) RTStrAAppendN(char **ppsz, const char *pszAppend, size_t cchAppend) } +#ifndef IN_RING0 + +/* XXX Currently not needed anywhere. alloca() induces some linker problems for ring 0 code + * with newer versions of VCC */ + RTDECL(int) RTStrAAppendExNV(char **ppsz, size_t cPairs, va_list va) { AssertPtr(ppsz); @@ -244,6 +251,8 @@ RTDECL(int) RTStrAAppendExN(char **ppsz, size_t cPairs, ...) } RT_EXPORT_SYMBOL(RTStrAAppendExN); +#endif + RTDECL(int) RTStrATruncate(char **ppsz, size_t cchNew) { |