forked from pyrite-dev/milsko
add darwin dylib ifdefs for shared libs
Co-Authored-By: Quote Walker <operz@coralcmd.net>
This commit is contained in:
parent
572c170cd6
commit
e618144fbc
2 changed files with 8 additions and 0 deletions
|
|
@ -68,7 +68,11 @@ void MwLLDestroyCommon(MwLL handle) {
|
||||||
|
|
||||||
#ifdef USE_DBUS
|
#ifdef USE_DBUS
|
||||||
MwBool MwLLDBusFuncSetup(MwLLDBusFuncTable* tbl) {
|
MwBool MwLLDBusFuncSetup(MwLLDBusFuncTable* tbl) {
|
||||||
|
#ifdef __APPLE__
|
||||||
|
tbl->lib = MwDynamicOpen("libdbus-1.dylib");
|
||||||
|
#else
|
||||||
tbl->lib = MwDynamicOpen("libdbus-1.so");
|
tbl->lib = MwDynamicOpen("libdbus-1.so");
|
||||||
|
#endif
|
||||||
if(!tbl->lib) {
|
if(!tbl->lib) {
|
||||||
fprintf(stderr, "[WARNING] dbus library (libdbus-1.so) not found, will not be able to check for any XDG settings.\n");
|
fprintf(stderr, "[WARNING] dbus library (libdbus-1.so) not found, will not be able to check for any XDG settings.\n");
|
||||||
return MwFALSE;
|
return MwFALSE;
|
||||||
|
|
|
||||||
|
|
@ -162,7 +162,11 @@ static void ft2_MwFontFree(void* handle) {
|
||||||
int MWFL_FT2Setup(void) {
|
int MWFL_FT2Setup(void) {
|
||||||
/* Try and load FreeType2. If it fails, return 1, signifying we default to stbtt. */
|
/* Try and load FreeType2. If it fails, return 1, signifying we default to stbtt. */
|
||||||
void* ftlib;
|
void* ftlib;
|
||||||
|
#ifdef __APPLE__
|
||||||
|
if(!(ftlib = MwDynamicOpen("libfreetype.dylib"))) {
|
||||||
|
#else
|
||||||
if(!(ftlib = MwDynamicOpen("libfreetype.so"))) {
|
if(!(ftlib = MwDynamicOpen("libfreetype.so"))) {
|
||||||
|
#endif
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue