changeset 5287:890a0abfe0b8

OS/2 workaround
author arpi
date Sat, 23 Mar 2002 20:56:34 +0000
parents 30caf02c0eae
children 370d13663229
files mp_msg.h
diffstat 1 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mp_msg.h	Sat Mar 23 19:29:48 2002 +0000
+++ b/mp_msg.h	Sat Mar 23 20:56:34 2002 +0000
@@ -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 )
 
@@ -103,3 +110,4 @@
 #endif
 
 #endif
+#endif