summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/cfg-mplayer.h2
-rw-r--r--core/input/input.c2
-rw-r--r--core/m_option.h2
3 files changed, 4 insertions, 2 deletions
diff --git a/core/cfg-mplayer.h b/core/cfg-mplayer.h
index 22017f930b..651ec61a77 100644
--- a/core/cfg-mplayer.h
+++ b/core/cfg-mplayer.h
@@ -282,6 +282,8 @@ const m_option_t msgl_config[]={
extern const m_option_t lavc_decode_opts_conf[];
+#define OPT_BASE_STRUCT struct MPOpts
+
const m_option_t common_opts[] = {
// ------------------------- common options --------------------
OPT_FLAG("quiet", quiet, CONF_GLOBAL),
diff --git a/core/input/input.c b/core/input/input.c
index 5d5e3f3a67..6419f28bc1 100644
--- a/core/input/input.c
+++ b/core/input/input.c
@@ -518,6 +518,8 @@ int async_quit_request;
static int print_key_list(m_option_t *cfg, char *optname, char *optparam);
static int print_cmd_list(m_option_t *cfg, char *optname, char *optparam);
+#define OPT_BASE_STRUCT struct MPOpts
+
// Our command line options
static const m_option_t input_conf[] = {
OPT_STRING("conf", input.config_file, CONF_GLOBAL),
diff --git a/core/m_option.h b/core/m_option.h
index 5720b30b94..d06e189449 100644
--- a/core/m_option.h
+++ b/core/m_option.h
@@ -619,6 +619,4 @@ static inline void m_option_free(const m_option_t *opt, void *dst)
.type = &m_option_type_subconfig_struct, \
.priv = (void*)&subconf)
-#define OPT_BASE_STRUCT struct MPOpts
-
#endif /* MPLAYER_M_OPTION_H */