[Mplayer-cvslog] CVS: main mp_msg.h,1.16,1.17

Arpi of Ize arpi at mplayer.dev.hu
Sat Mar 23 21:56:36 CET 2002


Update of /cvsroot/mplayer/main
In directory mplayer:/var/tmp.root/cvs-serv19687

Modified Files:
	mp_msg.h 
Log Message:
OS/2 workaround

Index: mp_msg.h
===================================================================
RCS file: /cvsroot/mplayer/main/mp_msg.h,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- mp_msg.h	20 Mar 2002 15:14:59 -0000	1.16
+++ mp_msg.h	23 Mar 2002 20:56:34 -0000	1.17
@@ -70,10 +70,15 @@
 
 void mp_msg_init();
 void mp_msg_set_level(int verbose);
-void mp_msg_c( int x, const char *format, ... );
 
 #include "config.h"
 
+#ifdef TARGET_OS2
+// va_start/vsnprintf seems to be broken under OS2 :(
+#define mp_msg(mod,lev, fmt, args... ) do{if(lev<=mp_msg_levels[mod]) printf( fmt, ## args );}while(0)
+#define mp_dbg(mod,lev, args... ) 
+#else
+
 #ifdef USE_I18N
 #include <libintl.h>
 #include <locale.h>
@@ -82,6 +87,8 @@
 #define mp_gettext(String) String
 #endif
 
+void mp_msg_c( int x, const char *format, ... );
+
 #ifdef __GNUC__
 #define mp_msg(mod,lev, args... ) mp_msg_c((mod<<8)|lev, ## args )
 
@@ -102,4 +109,5 @@
 #endif
 #endif
 
+#endif
 #endif




More information about the MPlayer-cvslog mailing list