forked from pyrite-dev/milsko
init haiku
This commit is contained in:
parent
6137728de7
commit
22b0891598
9 changed files with 34 additions and 5 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
4
src/backend/haiku.cxx
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
#include <Mw/Milsko.h>
|
||||
|
||||
#include "call.c"
|
||||
CALL(Haiku);
|
||||
Loading…
Add table
Add a link
Reference in a new issue