From 71ec907eaa172992c819c58fd547980054dd84b3 Mon Sep 17 00:00:00 2001 From: Marcus Overhagen Date: Sat, 28 Jul 2007 22:36:02 +0000 Subject: [PATCH] Build fix for GCC 4 git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21731 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/kernel/util/kernel_cpp.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/system/kernel/util/kernel_cpp.cpp b/src/system/kernel/util/kernel_cpp.cpp index 616dbc59b9..b6ced31b90 100644 --- a/src/system/kernel/util/kernel_cpp.cpp +++ b/src/system/kernel/util/kernel_cpp.cpp @@ -31,7 +31,11 @@ // ... it doesn't seem to work with this symbol at least. #ifndef USING_LIBGCC +# if __GNUC__ >= 3 +const std::nothrow_t std::nothrow = {}; +# else const nothrow_t std::nothrow = {}; +# endif #endif #if __GNUC__ == 2 @@ -92,6 +96,7 @@ fputc(int c, FILE *stream) return 0; } +#ifndef _LOADER_MODE extern "C" int printf(const char *format, ...) @@ -100,6 +105,7 @@ printf(const char *format, ...) dprintf("printf(`%s',...)\n", format); return 0; } +#endif extern "C" int