init haiku

This commit is contained in:
Nishi 2026-04-28 15:06:38 +00:00
commit 22b0891598
9 changed files with 34 additions and 5 deletions

View file

@ -48,7 +48,7 @@ void MwDynamicClose(void* handle) {
// CFragConnectionID connID = (CFragConnectionID)handle;
// CloseConnection(&connID);
}
#elif defined(__unix__) || defined(__APPLE__)
#elif defined(__unix__) || defined(__APPLE__) || defined(__HAIKU__)
void* MwDynamicOpen(const char* path) {
return dlopen(path, RTLD_LOCAL | RTLD_LAZY);
}

View file

@ -55,7 +55,7 @@ void MwTimeSleep(int ms) {
// DisposeTimerUPP(tm.tmAddr);
}
#elif defined(__unix__)
#elif defined(__unix__) || defined(__HAIKU__)
long MwTimeGetTick(void) {
struct timespec ts;
long n = 0;

4
src/backend/haiku.cxx Normal file
View file

@ -0,0 +1,4 @@
#include <Mw/Milsko.h>
#include "call.c"
CALL(Haiku);