init haiku
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good

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

@ -30,6 +30,7 @@ enum MwLLBackends {
MwLLBackendGDI,
MwLLBackendWayland,
MwLLBackendCocoa,
MwLLBackendHaiku
};
struct _MwLLCommon {
@ -117,6 +118,9 @@ MWDECL void MwLLDBusFreeContext(MwLLDBusFuncTable* tbl, MwLLDBusContext* ctx);
#ifdef CLASSIC_MAC_OS
#include <Mw/LowLevel/ClassicMacOS.h>
#endif
#ifdef USE_HAIKU
#include <Mw/LowLevel/Haiku.h>
#endif
union _MwLL {
struct _MwLLCommon common;
@ -135,6 +139,9 @@ union _MwLL {
#ifdef CLASSIC_MAC_OS
struct _MwLLClassicMacOS cmacos;
#endif
#ifdef USE_HAIKU
struct _MwLLHaiku haiku;
#endif
};
union _MwLLColor {
@ -151,6 +158,9 @@ union _MwLLColor {
#ifdef USE_COCOA
struct _MwLLCocoaColor cocoa;
#endif
#ifdef USE_HAIKU
struct _MwLLHaikuColor haiku;
#endif
};
union _MwLLPixmap {
@ -170,6 +180,9 @@ union _MwLLPixmap {
#ifdef CLASSIC_MAC_OS
struct _MwLLClassicMacOSPixmap cmacos;
#endif
#ifdef USE_HAIKU
struct _MwLLHaikuPixmap haiku;
#endif
};
#endif
#include <Mw/TypeDefs.h>

View file

@ -57,7 +57,7 @@
#include <limits.h>
#endif
#if defined(__unix__) || defined(__APPLE__)
#if defined(__unix__) || defined(__APPLE__) || defined(__HAIKU__)
#include <dirent.h>
#include <dlfcn.h>
#endif