summaryrefslogtreecommitdiff
path: root/src/VBox/Runtime/common/string/stringalloc.cpp
diff options
context:
space:
mode:
authorFelix Geyer <debfx-pkg@fobos.de>2010-10-12 15:58:30 +0200
committerFelix Geyer <debfx-pkg@fobos.de>2010-10-12 15:58:30 +0200
commit7f230f4ac2a1b544b47ded0584c22822b9bd65d7 (patch)
treeee5808929787047784013befd706131196a30d1d /src/VBox/Runtime/common/string/stringalloc.cpp
parentadf97a4e6386ea334ce8d77f0cde3b92454b9fa5 (diff)
downloadvirtualbox-7f230f4ac2a1b544b47ded0584c22822b9bd65d7.tar.gz
Imported Upstream version 3.2.10-dfsgupstream/3.2.10-dfsg
Diffstat (limited to 'src/VBox/Runtime/common/string/stringalloc.cpp')
-rw-r--r--src/VBox/Runtime/common/string/stringalloc.cpp11
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)
{