mirror of
https://github.com/owntone/owntone-server.git
synced 2025-04-14 08:16:17 -04:00
Remove Mac OS conditional code
This commit is contained in:
parent
c3fb950737
commit
cfdb37c07c
@ -47,10 +47,6 @@
|
|||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include <sys/resource.h>
|
#include <sys/resource.h>
|
||||||
|
|
||||||
#ifdef MAC
|
|
||||||
#include "CoreFoundation/CoreFoundation.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "daapd.h"
|
#include "daapd.h"
|
||||||
#include "conf.h"
|
#include "conf.h"
|
||||||
#include "err.h"
|
#include "err.h"
|
||||||
@ -493,17 +489,6 @@ int os_islocaladdr(char *hostaddr) {
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef MAC
|
|
||||||
char *os_apppath(char *parm) {
|
|
||||||
CFURLRef pluginRef = CFBundleCopyBundleURL(CFBundleGetMainBundle());
|
|
||||||
CFStringRef macPath = CFURLCopyFileSystemPath(pluginRef,
|
|
||||||
kCFURLPOSIXPathStyle);
|
|
||||||
const char *pathPtr = CFStringGetCStringPtr(macPath,
|
|
||||||
CFStringGetSystemEncoding());
|
|
||||||
|
|
||||||
return strdup(pathPtr);
|
|
||||||
}
|
|
||||||
#else
|
|
||||||
char *os_apppath(char *parm) {
|
char *os_apppath(char *parm) {
|
||||||
char path[PATH_MAX];
|
char path[PATH_MAX];
|
||||||
|
|
||||||
@ -514,7 +499,6 @@ char *os_apppath(char *parm) {
|
|||||||
|
|
||||||
return strdup(path);
|
return strdup(path);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* stat wrapper
|
* stat wrapper
|
||||||
|
Loading…
x
Reference in New Issue
Block a user