Haiku: Updates works for 64 bit OS, and thread naming works now too

This commit is contained in:
UnknownShadow200 2024-03-19 17:47:29 +11:00
parent 9daf872e57
commit 2ab73f7d6c
2 changed files with 7 additions and 2 deletions

View File

@ -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

View File

@ -284,7 +284,6 @@ static void UpdateMouseButtons(int buttons) {
}
static void HandleMouseMovement(BMessage* msg) {
msg->PrintToStream();
int dx, dy;
float prs;