diff options
author | jkeil <jkeil@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-12-27 16:17:57 +0000 |
---|---|---|
committer | jkeil <jkeil@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-12-27 16:17:57 +0000 |
commit | e2d96e7083aea5463645eb0d90aaa5d2af6158d1 (patch) | |
tree | 564652570a3a253326aa72e3cb369e9a81da6996 /mp_msg.c | |
parent | 30c23e4946ed912f3b640c445ef87565b55fb000 (diff) | |
download | mpv-e2d96e7083aea5463645eb0d90aaa5d2af6158d1.tar.bz2 mpv-e2d96e7083aea5463645eb0d90aaa5d2af6158d1.tar.xz |
codec-cfg cannot be built when the gui is enabled - it fails to link with a
couple of undefined external references.
Problem is that mp_msg.c is included in the codec-cfg binary, but for codec-cfg
the gui code in mp_msg.c shouldn't be compiled in.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8574 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mp_msg.c')
-rw-r--r-- | mp_msg.c | 14 |
1 files changed, 11 insertions, 3 deletions
@@ -7,7 +7,15 @@ #include "config.h" -#ifdef HAVE_NEW_GUI +#if defined(FOR_MENCODER) || defined(CODECS2HTML) +#undef ENABLE_GUI_CODE +#elif defined(HAVE_NEW_GUI) +#define ENABLE_GUI_CODE HAVE_NEW_GUI +#else +#undef ENABLE_GUI_CODE +#endif + +#if ENABLE_GUI_CODE #include "Gui/mplayer/widgets.h" extern void gtkMessageBox( int type,char * str ); extern int use_gui; @@ -58,7 +66,7 @@ void mp_msg_c( int x, const char *format, ... ){ va_end(va); tmp[MSGSIZE_MAX-1] = 0; -#if defined(HAVE_NEW_GUI) && !defined(FOR_MENCODER) +#if ENABLE_GUI_CODE if(use_gui) { switch(x & 255) @@ -106,7 +114,7 @@ void mp_msg_c( int x, const char *format, ... ){ va_list va; if((x&255)>mp_msg_levels[x>>8]) return; // do not display va_start(va, format); -#if defined( HAVE_NEW_GUI ) && !defined( FOR_MENCODER ) +#if ENABLE_GUI_CODE if(use_gui){ char tmp[16*80]; vsnprintf( tmp,8*80,format,va ); tmp[8*80-1]=0; |