summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-12-18 17:12:21 +0100
committerwm4 <wm4@nowhere>2013-12-18 17:12:21 +0100
commit2c08bf1bd744bb8eb5986f1ccb3ae03e284170dc (patch)
treed8d7c08760dcc584f99eff7b921bb87a116fe532 /common
parent5e0424f17f23c24e82a4325ff81e7ef67ac1337a (diff)
downloadmpv-2c08bf1bd744bb8eb5986f1ccb3ae03e284170dc.tar.bz2
mpv-2c08bf1bd744bb8eb5986f1ccb3ae03e284170dc.tar.xz
Reduce recursive config.h inclusions in headers
In my opinion, config.h inclusions should be kept to a minimum. MPlayer code really liked including config.h everywhere, though, even in often used header files. Try to reduce this.
Diffstat (limited to 'common')
-rw-r--r--common/msg.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/common/msg.h b/common/msg.h
index 7b93d831d8..8466e7e2b6 100644
--- a/common/msg.h
+++ b/common/msg.h
@@ -21,6 +21,10 @@
#include <stdarg.h>
#include <stdbool.h>
+#include <stdlib.h>
+#include <stdint.h>
+
+#include "compat/compiler.h"
struct mp_log;
@@ -131,9 +135,6 @@ extern int verbose;
int mp_msg_test(int mod, int lev);
bool mp_msg_test_log(struct mp_log *log, int lev);
-#include "config.h"
-#include "common/common.h"
-
// Note: using mp_msg_log or the MP_ERR/... macros is preferred.
void mp_msg_va(int mod, int lev, const char *format, va_list va);
void mp_msg(int mod, int lev, const char *format, ... ) PRINTF_ATTRIBUTE(3, 4);