summaryrefslogtreecommitdiffstats
path: root/source/Expression/ExpressionSourceCode.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/Expression/ExpressionSourceCode.cpp')
-rw-r--r--source/Expression/ExpressionSourceCode.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/Expression/ExpressionSourceCode.cpp b/source/Expression/ExpressionSourceCode.cpp
index 080562e..b3f335f 100644
--- a/source/Expression/ExpressionSourceCode.cpp
+++ b/source/Expression/ExpressionSourceCode.cpp
@@ -41,13 +41,17 @@ typedef __UINTPTR_TYPE__ uintptr_t;
typedef __SIZE_TYPE__ size_t;
typedef __PTRDIFF_TYPE__ ptrdiff_t;
typedef unsigned short unichar;
+extern "C"
+{
+ int printf(const char * __restrict, ...);
+}
)";
bool ExpressionSourceCode::GetText (std::string &text, lldb::LanguageType wrapping_language, bool const_object, bool static_method, ExecutionContext &exe_ctx) const
{
const char *target_specific_defines = "typedef signed char BOOL;\n";
- static ConstString g_platform_ios_simulator ("PlatformiOSSimulator");
+ static ConstString g_platform_ios_simulator ("ios-simulator");
if (Target *target = exe_ctx.GetTargetPtr())
{
OpenPOWER on IntegriCloud