mirror of
https://github.com/mpv-player/mpv
synced 2025-02-17 04:58:06 +00:00
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.
This commit is contained in:
parent
83012fd77a
commit
cbaa8d65fc
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user