Convert ui_cocoa_application.m to C

This commit is contained in:
Twinaphex 2020-09-14 17:12:57 +02:00
parent a8beb91f0f
commit 88e927cf94
3 changed files with 10 additions and 3 deletions

View File

@ -69,6 +69,10 @@
#include "../network/net_logger.c"
#endif
#if TARGET_OS_OSX
#include "../ui/drivers/cocoa/ui_cocoa_application.c"
#endif
/*============================================================
COMPATIBILITY
============================================================ */

View File

@ -39,7 +39,6 @@
#if TARGET_OS_OSX
#include "../ui/drivers/cocoa/ui_cocoa_window.m"
#include "../ui/drivers/cocoa/ui_cocoa_browser_window.m"
#include "../ui/drivers/cocoa/ui_cocoa_application.m"
#include "../ui/drivers/cocoa/ui_cocoa_msg_window.m"
#include "../ui/drivers/ui_cocoa.m"
#endif

View File

@ -19,11 +19,15 @@
#include <stdlib.h>
#include <string.h>
#include <objc/objc-runtime.h>
#include <objc/objc.h>
#include <objc/message.h>
#include <objc/NSObjCRuntime.h>
#include "cocoa_defines.h"
#include "cocoa_common.h"
#include "../../ui_companion_driver.h"
extern id NSApp;
extern id const NSDefaultRunLoopMode;
static void* ui_application_cocoa_initialize(void)
{
return NULL;