From 2ab73f7d6c0ae365545eebadc4b5a55daa0ec87e Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Tue, 19 Mar 2024 17:47:29 +1100 Subject: [PATCH] Haiku: Updates works for 64 bit OS, and thread naming works now too --- src/Platform_Posix.c | 8 +++++++- src/interop_BeOS.cpp | 1 - 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/Platform_Posix.c b/src/Platform_Posix.c index 63ad4f586..1bb56e988 100644 --- a/src/Platform_Posix.c +++ b/src/Platform_Posix.c @@ -345,7 +345,7 @@ void Thread_Run(void** handle, Thread_StartFunc func, int stackSize, const char* if (res) Logger_Abort2(res, "Creating thread"); pthread_attr_destroy(&attrs); - #ifdef CC_BUILD_LINUX + #if defined CC_BUILD_LINUX || defined CC_BUILD_HAIKU extern int pthread_setname_np(pthread_t thread, const char *name); pthread_setname_np(*ptr, name); #endif @@ -942,6 +942,12 @@ cc_bool Updater_Clean(void) { return true; } #else const struct UpdaterInfo Updater_Info = { "&eCompile latest source code to update", 0 }; #endif +#elif defined CC_BUILD_HAIKU + #if __x86_64__ + const struct UpdaterInfo Updater_Info = { "", 1, { { "OpenGL", "cc-haiku-64" } } }; + #else + const struct UpdaterInfo Updater_Info = { "&eCompile latest source code to update", 0 }; + #endif #else const struct UpdaterInfo Updater_Info = { "&eCompile latest source code to update", 0 }; #endif diff --git a/src/interop_BeOS.cpp b/src/interop_BeOS.cpp index ef7546cb1..07bd665d7 100644 --- a/src/interop_BeOS.cpp +++ b/src/interop_BeOS.cpp @@ -284,7 +284,6 @@ static void UpdateMouseButtons(int buttons) { } static void HandleMouseMovement(BMessage* msg) { - msg->PrintToStream(); int dx, dy; float prs;