add darwin dylib ifdefs for shared libs
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good
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
|
||||
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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue