summaryrefslogtreecommitdiffstats
path: root/osdep/main-fn-cocoa.c
diff options
context:
space:
mode:
Diffstat (limited to 'osdep/main-fn-cocoa.c')
-rw-r--r--osdep/main-fn-cocoa.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/osdep/main-fn-cocoa.c b/osdep/main-fn-cocoa.c
new file mode 100644
index 0000000000..eeed127ead
--- /dev/null
+++ b/osdep/main-fn-cocoa.c
@@ -0,0 +1,10 @@
+#include "osdep/macosx_application.h"
+
+// This is needed because Cocoa absolutely requires creating the NSApplication
+// singleton and running it in the "main" thread. It is apparently not
+// possible to do this on a separate thread at all. It is not known how
+// Apple managed this colossal fuckup.
+int main(int argc, char *argv[])
+{
+ return cocoa_main(argc, argv);
+}