mirror of
https://github.com/mpv-player/mpv
synced 2025-03-20 02:09:52 +00:00
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:
parent
bea8281d3d
commit
e8954b5bf9
2
Makefile
2
Makefile
@ -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)
|
||||
|
@ -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"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user