From cfdb37c07cc5271afe53754315ecd4b52fab8ad2 Mon Sep 17 00:00:00 2001 From: Julien BLACHE Date: Thu, 2 Apr 2009 11:06:29 +0200 Subject: [PATCH] Remove Mac OS conditional code --- src/os-unix.c | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/os-unix.c b/src/os-unix.c index a6b33f33..8980f0f7 100644 --- a/src/os-unix.c +++ b/src/os-unix.c @@ -47,10 +47,6 @@ #include #include -#ifdef MAC -#include "CoreFoundation/CoreFoundation.h" -#endif - #include "daapd.h" #include "conf.h" #include "err.h" @@ -493,17 +489,6 @@ int os_islocaladdr(char *hostaddr) { 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 path[PATH_MAX]; @@ -514,7 +499,6 @@ char *os_apppath(char *parm) { return strdup(path); } -#endif /** * stat wrapper