summaryrefslogtreecommitdiffstats
path: root/osdep
diff options
context:
space:
mode:
authorder richter <der.richter@gmx.de>2024-03-25 23:53:43 +0100
committerder richter <der.richter@gmx.de>2024-03-29 14:20:40 +0100
commit86aea966d92053e3aca364a802c5619da2e7d428 (patch)
tree54ce963c15496facaa82b516e019b4905fb21f57 /osdep
parent6fed2f8e5816765b6a99a9e3dbf87e4229eb5800 (diff)
downloadmpv-86aea966d92053e3aca364a802c5619da2e7d428.tar.bz2
mpv-86aea966d92053e3aca364a802c5619da2e7d428.tar.xz
mac: cleanup mac headers and include preprocessors
Diffstat (limited to 'osdep')
-rw-r--r--osdep/mac/app_bridge.h7
-rw-r--r--osdep/mac/app_bridge.m2
-rw-r--r--osdep/mac/application.h5
3 files changed, 2 insertions, 12 deletions
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 <http://www.gnu.org/licenses/>.
*/
-#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 <http://www.gnu.org/licenses/>.
*/
-#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 */