From 5299dc4ab804f2efbf47bd3dfd3bba185da4323f Mon Sep 17 00:00:00 2001 From: Christian Helmuth Date: Wed, 18 Sep 2013 16:40:14 +0200 Subject: [PATCH] ldso: fix compiler errors with C++11 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The warning error: expected unqualified-id before ‘STRING_USERDEF’ token was caused by a missing whitespace in 'extern "C"int'. --- os/src/lib/ldso/file.cc | 2 +- os/src/lib/ldso/stdio.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/os/src/lib/ldso/file.cc b/os/src/lib/ldso/file.cc index cd1debeab..45837e267 100644 --- a/os/src/lib/ldso/file.cc +++ b/os/src/lib/ldso/file.cc @@ -195,7 +195,7 @@ namespace Genode { } -extern "C"int open(const char *pathname, int flags) +extern "C" int open(const char *pathname, int flags) { using namespace Genode; static int fd = -1; diff --git a/os/src/lib/ldso/stdio.cc b/os/src/lib/ldso/stdio.cc index 8329e5291..22b65866e 100644 --- a/os/src/lib/ldso/stdio.cc +++ b/os/src/lib/ldso/stdio.cc @@ -26,7 +26,7 @@ extern "C" int printf(char const *format, ...) return 0; } -extern "C"inline +extern "C" inline int vprintf(const char *format, va_list ap) { Genode::vprintf(format, ap);