diff options
author | wm4 <wm4@nowhere> | 2015-05-21 22:45:56 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-05-21 22:45:56 +0200 |
commit | cbaa8d65fc17994f542f16eb2479ac4cd4621262 (patch) | |
tree | 11e958bc31dd02f21778f214c83b16521189250e /DOCS | |
parent | 83012fd77ab32c7eb0f42491d4ed95c9d9805a55 (diff) |
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.
Diffstat (limited to 'DOCS')
-rw-r--r-- | DOCS/client_api_examples/cocoa/cocoabasic.m | 4 |
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; } |