disable ms_debug on win32 if DEBUG not enabled

parent 903d16fd
......@@ -24,7 +24,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include <ortp/str_utils.h>
#include <ortp/payloadtype.h>
#include <time.h>
#if defined(__APPLE__)
#if defined(__APPLE__)
#include "TargetConditionals.h"
#endif
......@@ -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
......@@ -248,9 +238,9 @@ MS2_PUBLIC void ms_usleep(uint64_t usec);
* Filters that generate data that can be sent through RTP should make packets
* whose size is below ms_get_payload_max_size().
* The default value is 1440 computed as the standard internet MTU minus IPv6 header,
* UDP header and RTP header. As IPV4 header is smaller than IPv6 header, this
* UDP header and RTP header. As IPV4 header is smaller than IPv6 header, this
* value works for both.
*
*
**/
MS2_PUBLIC int ms_get_payload_max_size();
......@@ -279,7 +269,7 @@ MS2_PUBLIC int ms_get_mtu(void);
* Declare how many cpu (cores) are available on the platform
*/
MS2_PUBLIC void ms_set_cpu_count(unsigned int c);
MS2_PUBLIC unsigned int ms_get_cpu_count();
/**
......
......@@ -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