summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-05-21 22:45:56 +0200
committerwm4 <wm4@nowhere>2015-05-21 22:45:56 +0200
commitcbaa8d65fc17994f542f16eb2479ac4cd4621262 (patch)
tree11e958bc31dd02f21778f214c83b16521189250e
parent83012fd77ab32c7eb0f42491d4ed95c9d9805a55 (diff)
downloadmpv-cbaa8d65fc17994f542f16eb2479ac4cd4621262.tar.bz2
mpv-cbaa8d65fc17994f542f16eb2479ac4cd4621262.tar.xz
DOCS/client_api_examples: cocoa: minor fixes
Cocoa needs to be linked explicitly. EXIT_SUCCESS is pretty pointless, and the same file uses exit(1) in other places.
-rw-r--r--DOCS/client_api_examples/cocoa/cocoabasic.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/DOCS/client_api_examples/cocoa/cocoabasic.m b/DOCS/client_api_examples/cocoa/cocoabasic.m
index f2d9059afe..f2f251a603 100644
--- a/DOCS/client_api_examples/cocoa/cocoabasic.m
+++ b/DOCS/client_api_examples/cocoa/cocoabasic.m
@@ -3,7 +3,7 @@
// but that's not quite ready yet.
// You may need a basic Info.plist and MainMenu.xib to make this work.
-// Build with: clang -o cocoabasic cocoabasic.m `pkg-config --libs --cflags mpv`
+// Build with: clang -o cocoabasic cocoabasic.m `pkg-config --libs --cflags mpv` -framework cocoa
#include <mpv/client.h>
@@ -207,5 +207,5 @@ int main(int argc, const char * argv[]) {
app.delegate = delegate;
[app run];
}
- return EXIT_SUCCESS;
+ return 0;
}