remove mp_msg.c dependency when compiling codec-cfg binary.

Fixes MinGW compilation (caused by missing -liconv), this solution seems best
to me because of e.g. cross-compilation issues just adding -liconv might cause.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17842 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2006-03-12 23:06:09 +00:00
parent bea8281d3d
commit e8954b5bf9
2 changed files with 8 additions and 1 deletions

View File

@ -448,7 +448,7 @@ $(MPLAYER_DEP): version.h help_mp.h
$(MENCODER_DEP): version.h help_mp.h
$(PRG_CFG): version.h codec-cfg.c codec-cfg.h
$(HOST_CC) $(HOST_CFLAGS) -I. codec-cfg.c mp_msg.c -o $(PRG_CFG) -DCODECS2HTML $(EXTRA_LIB) $(EXTRA_INC) $(I18NLIBS)
$(HOST_CC) $(HOST_CFLAGS) -I. codec-cfg.c -o $(PRG_CFG) -DCODECS2HTML $(EXTRA_LIB) $(EXTRA_INC)
install: $(ALL_PRG)
ifeq ($(VIDIX),yes)

View File

@ -26,6 +26,13 @@
#include "config.h"
#include "mp_msg.h"
#ifdef CODECS2HTML
#ifdef __GNUC__
#define mp_msg(t, l, m, args...) fprintf(stderr, m, ##args)
#else
#define mp_msg(t, l, m, ...) fprintf(stderr, m, __VA_ARGS__)
#endif
#endif
#include "help_mp.h"