(Cocoa) Buildfix

This commit is contained in:
Twinaphex 2016-06-04 08:00:19 +02:00
parent 98014f7b66
commit 7a564720fb
3 changed files with 52 additions and 2 deletions

View File

@ -35,6 +35,7 @@
#import <AVFoundation/AVCaptureOutput.h>
#endif
/*********************************************/
/* RAMenuBase */
/* A menu class that displays RAMenuItemBase */
@ -88,6 +89,8 @@ void get_ios_version(int *major, int *minor);
#elif defined(HAVE_COCOA)
#include <AppKit/AppKit.h>
#include "ui_cocoa_window.h"
@interface CocoaView : NSView
#ifdef HAVE_CORELOCATION
<CLLocationManagerDelegate>

View File

@ -0,0 +1,46 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
* Copyright (C) 2011-2016 - Daniel De Matteis
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
*
* RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along with RetroArch.
* If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _COCOA_WINDOW_UI
#define _COCOA_WINDOW_UI
#include <stdint.h>
#include <stddef.h>
#include <boolean.h>
#include <retro_common_api.h>
#include "../../ui_companion_driver.h"
RETRO_BEGIN_DECLS
typedef struct ui_window_cocoa
{
void *empty;
} ui_window_cocoa_t;
void ui_window_cocoa_set_visible(void *data,
bool set_visible);
void ui_window_cocoa_set_focused(void *data);
void ui_window_cocoa_destroy(void *data);
void ui_window_cocoa_set_title(void *data, char *buf);
RETRO_END_DECLS
#endif

View File

@ -19,6 +19,7 @@
#include <stdlib.h>
#include <string.h>
#include "cocoa_common.h"
#include "../../ui_companion_driver.h"
void ui_window_cocoa_destroy(void *data)
@ -29,12 +30,12 @@ void ui_window_cocoa_set_focused(void *data)
{
}
static void ui_window_cocoa_set_visible(void *data,
void ui_window_cocoa_set_visible(void *data,
bool set_visible)
{
}
static void ui_window_cocoa_set_title(void *data, char *buf)
void ui_window_cocoa_set_title(void *data, char *buf)
{
}