add darwin dylib ifdefs for shared libs

Co-Authored-By: Quote Walker <operz@coralcmd.net>
This commit is contained in:
Nishi 2026-04-29 13:45:32 +09:00
commit e618144fbc
2 changed files with 8 additions and 0 deletions

View file

@ -68,7 +68,11 @@ void MwLLDestroyCommon(MwLL handle) {
#ifdef USE_DBUS
MwBool MwLLDBusFuncSetup(MwLLDBusFuncTable* tbl) {
#ifdef __APPLE__
tbl->lib = MwDynamicOpen("libdbus-1.dylib");
#else
tbl->lib = MwDynamicOpen("libdbus-1.so");
#endif
if(!tbl->lib) {
fprintf(stderr, "[WARNING] dbus library (libdbus-1.so) not found, will not be able to check for any XDG settings.\n");
return MwFALSE;

View file

@ -162,7 +162,11 @@ static void ft2_MwFontFree(void* handle) {
int MWFL_FT2Setup(void) {
/* Try and load FreeType2. If it fails, return 1, signifying we default to stbtt. */
void* ftlib;
#ifdef __APPLE__
if(!(ftlib = MwDynamicOpen("libfreetype.dylib"))) {
#else
if(!(ftlib = MwDynamicOpen("libfreetype.so"))) {
#endif
return 1;
}