From 2c08bf1bd744bb8eb5986f1ccb3ae03e284170dc Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 18 Dec 2013 17:12:21 +0100 Subject: 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. --- common/msg.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'common/msg.h') 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 #include +#include +#include + +#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); -- cgit v1.2.3