summaryrefslogtreecommitdiffstats
path: root/osdep/main-fn-mac.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 01:13:14 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 01:13:14 +0000
commit60e8a3d404f0640fa5a3f834eae54b4f1fb9127d (patch)
tree1da89a218d0ecf010c67a87cb2f625c4cb18e7d7 /osdep/main-fn-mac.c
parentAdding upstream version 0.37.0. (diff)
downloadmpv-upstream.tar.xz
mpv-upstream.zip
Adding upstream version 0.38.0.upstream/0.38.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--osdep/main-fn-mac.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/osdep/main-fn-mac.c b/osdep/main-fn-mac.c
new file mode 100644
index 0000000..1406100
--- /dev/null
+++ b/osdep/main-fn-mac.c
@@ -0,0 +1,7 @@
+#include "osdep/mac/app_bridge.h"
+
+// Cocoa absolutely requires creating the NSApplication singleton and running it on the main thread.
+int main(int argc, char *argv[])
+{
+ return cocoa_main(argc, argv);
+}