disable ms_debug on win32 if DEBUG not enabled

parent 903d16fd
......@@ -65,15 +65,6 @@ time_t ms_time (time_t *t);
#define ms_time time
#endif
#ifdef WIN32
static inline void ms_debug(const char *fmt,...)
{
va_list args;
va_start (args, fmt);
ortp_logv(ORTP_DEBUG, fmt, args);
va_end (args);
}
#else
#ifdef DEBUG
static inline void ms_debug(const char *fmt,...)
{
......@@ -83,8 +74,7 @@ static inline void ms_debug(const char *fmt,...)
va_end (args);
}
#else
#define ms_debug(...)
#endif
#define ms_debug(fmt, ...)
#endif
#define ms_message ortp_message
......
......@@ -527,6 +527,7 @@ bool_t parse_args(int argc, char** argv, MediastreamDatas* out) {
printf("%s",usage);
return FALSE;
} else {
printf("%s",usage);
printf("Unknown option '%s'\n", argv[i]);
return FALSE;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment