From 86aea966d92053e3aca364a802c5619da2e7d428 Mon Sep 17 00:00:00 2001 From: der richter Date: Mon, 25 Mar 2024 23:53:43 +0100 Subject: mac: cleanup mac headers and include preprocessors --- osdep/mac/app_bridge.h | 7 +------ osdep/mac/app_bridge.m | 2 -- osdep/mac/application.h | 5 +---- 3 files changed, 2 insertions(+), 12 deletions(-) (limited to 'osdep/mac') diff --git a/osdep/mac/app_bridge.h b/osdep/mac/app_bridge.h index 53388d8ba8..32c161b493 100644 --- a/osdep/mac/app_bridge.h +++ b/osdep/mac/app_bridge.h @@ -1,6 +1,4 @@ /* - * Cocoa Application Event Handling - * * This file is part of mpv. * * mpv is free software; you can redistribute it and/or @@ -17,8 +15,7 @@ * License along with mpv. If not, see . */ -#ifndef MAC_EVENTS -#define MAC_EVENTS +#pragma once #include "input/input.h" @@ -27,5 +24,3 @@ void cocoa_uninit_media_keys(void); void cocoa_set_input_context(struct input_ctx *input_context); void cocoa_set_mpv_handle(struct mpv_handle *ctx); void cocoa_init_cocoa_cb(void); - -#endif diff --git a/osdep/mac/app_bridge.m b/osdep/mac/app_bridge.m index 976cfed3d1..79024dc882 100644 --- a/osdep/mac/app_bridge.m +++ b/osdep/mac/app_bridge.m @@ -1,6 +1,4 @@ /* - * Cocoa Application Event Handling - * * This file is part of mpv. * * mpv is free software; you can redistribute it and/or diff --git a/osdep/mac/application.h b/osdep/mac/application.h index 06e5f1dcb5..52bae7a104 100644 --- a/osdep/mac/application.h +++ b/osdep/mac/application.h @@ -15,8 +15,7 @@ * License along with mpv. If not, see . */ -#ifndef MAC_APPLICATION -#define MAC_APPLICATION +#pragma once #include "options/m_option.h" @@ -48,5 +47,3 @@ struct macos_opts { int cocoa_main(int argc, char *argv[]); extern const struct m_sub_options macos_conf; - -#endif /* MAC_APPLICATION */ -- cgit v1.2.3