PATCH: OSX will not compile due to LaunchService header file not found

Amit Chaudhuri amit.k.chaudhuri at gmail.com
Thu Feb 28 04:19:27 PST 2013


Fix compilation problem with LaunchServices on OSX

    You cannot include the LSOpen.h directly on OSX - it is too far down in
    the System hierarchy to locate. Instead we include the umbrella header
    CoreServices.h which finds it for us.


Signed off by Amit Chaudhuri <amit.k.chaudhuri at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20130228/9167b033/attachment.html>
-------------- next part --------------
diff --git a/macos.c b/macos.c
index dedca7e..0e2afbb 100644
--- a/macos.c
+++ b/macos.c
@@ -4,7 +4,7 @@
 #include "dive.h"
 #include "display-gtk.h"
 #include <CoreFoundation/CoreFoundation.h>
-#include <LaunchServices/LSOpen.h>
+#include <CoreServices/CoreServices.h>
 #include <mach-o/dyld.h>
 #include "gtkosxapplication.h"
 


More information about the subsurface mailing list