Skip to content

Commit 06f21f4

Browse files
committed
Some buildfixes
1 parent 2086570 commit 06f21f4

2 files changed

Lines changed: 11 additions & 12 deletions

File tree

gfx/drivers_context/cocoa_vk_ctx.m

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
#include "../../config.h"
1919
#endif
2020

21+
#include <TargetConditionals.h>
22+
2123
#if TARGET_OS_IPHONE
2224
#include <CoreGraphics/CoreGraphics.h>
2325
#else
@@ -31,16 +33,17 @@
3133
#include <compat/apple_compat.h>
3234
#include <string/stdstring.h>
3335

36+
#include "../common/vulkan_common.h"
37+
#ifdef HAVE_METAL
38+
#include "../common/metal_common.h"
39+
#endif
40+
3441
#include "../../ui/drivers/ui_cocoa.h"
3542
#include "../../ui/drivers/cocoa/cocoa_common.h"
3643
#include "../../ui/drivers/cocoa/apple_platform.h"
3744
#include "../../configuration.h"
3845
#include "../../retroarch.h"
3946
#include "../../verbosity.h"
40-
#include "../common/vulkan_common.h"
41-
#ifdef HAVE_METAL
42-
#include "../common/metal_common.h"
43-
#endif
4447

4548
typedef struct cocoa_vk_ctx_data
4649
{
@@ -237,8 +240,6 @@ static bool cocoa_vk_gfx_ctx_set_video_mode(void *data,
237240
CocoaView *g_view = (CocoaView*)nsview_get_ptr();
238241
#endif
239242
cocoa_vk_ctx_data_t *cocoa_ctx = (cocoa_vk_ctx_data_t*)data;
240-
static bool
241-
has_went_fullscreen = false;
242243
cocoa_ctx->width = width;
243244
cocoa_ctx->height = height;
244245

@@ -264,8 +265,6 @@ static bool cocoa_vk_gfx_ctx_set_video_mode(void *data,
264265
[apple_platform setVideoMode:mode];
265266
cocoa_show_mouse(data, !fullscreen);
266267

267-
has_went_fullscreen = fullscreen;
268-
269268
return true;
270269
}
271270

input/drivers_joypad/mfi_joypad.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,13 @@
2222

2323
#include <AvailabilityMacros.h>
2424

25-
#include "../input_driver.h"
26-
#include "../../tasks/tasks_internal.h"
27-
2825
#import <GameController/GameController.h>
2926
#import <CoreHaptics/CoreHaptics.h>
3027

28+
#include "../../configuration.h"
29+
#include "../../input/input_driver.h"
30+
#include "../../tasks/tasks_internal.h"
31+
3132
#ifndef MAX_MFI_CONTROLLERS
3233
#define MAX_MFI_CONTROLLERS 4
3334
#endif
@@ -36,7 +37,6 @@
3637
#endif
3738

3839
#if TARGET_OS_IOS
39-
#include "../../configuration.h"
4040
#define IPHONE_RUMBLE_AVAIL API_AVAILABLE(ios(14.0))
4141
static CHHapticEngine *deviceHapticEngine IPHONE_RUMBLE_AVAIL;
4242
static id<CHHapticPatternPlayer> deviceWeakPlayer IPHONE_RUMBLE_AVAIL;

0 commit comments

Comments
 (0)