From b5753dd7c988873ebb1d5ae97cef2760ed3b57f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Thu, 10 Jul 2008 11:52:57 +0000 Subject: [PATCH] * Added a __swap_int32() function to the runtime_loader - this fixes the build, since KMessage needs it now. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26366 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/runtime_loader/utility.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/system/runtime_loader/utility.cpp b/src/system/runtime_loader/utility.cpp index 32b4e1fdb4..1cda136898 100644 --- a/src/system/runtime_loader/utility.cpp +++ b/src/system/runtime_loader/utility.cpp @@ -58,6 +58,14 @@ printf(const char *format, ...) } +extern "C" uint32 +__swap_int32(uint32 value) +{ + return value >> 24 | (value >> 8) & 0xff00 | value << 24 + | (value << 8) & 0xff0000; +} + + // Copied from libroot/os/thread.c: