Ticket #25752: patch.txt

File patch.txt, 1.2 KB (added by akimd (Akim Demaille), 14 years ago)

Fix

Line 
1--- /opt/local/include/ortp/ortp.h~     2010-07-19 11:50:16.000000000 +0200
2+++ /opt/local/include/ortp/ortp.h      2010-07-20 12:55:20.000000000 +0200
3@@ -52,10 +52,10 @@
4  * - rtprecv.c rtpsend.c show how to receive and send a single RTP stream.
5  * - mrtprecv.c mrtpsend.c show how to receive and send multiple RTP streams
6  *   simultaneously
7- *
8+ *
9  */
10 
11-/**
12+/**
13  * \file ortp.h
14  * \brief General purpose library functions.
15  *
16@@ -103,12 +103,13 @@
17 #define ortp_log_level_enabled(level)  (__ortp_log_mask & (level))
18 
19 #if !defined(WIN32) && !defined(_WIN32_WCE)
20-#define ortp_logv(level,fmt,args) \
21-{\
22-       if (ortp_logv_out!=NULL && ortp_log_level_enabled(level)) \
23-               ortp_logv_out(level,fmt,args);\
24-       if ((level)==ORTP_FATAL) abort();\
25-}while(0)
26+#define ortp_logv(level,fmt,args)                                 \
27+  do {                                                            \
28+    if (ortp_logv_out!=NULL && ortp_log_level_enabled(level))     \
29+      ortp_logv_out(level,fmt,args);                              \
30+    if ((level)==ORTP_FATAL)                                      \
31+      abort();                                                    \
32+  } while(0)
33 #else
34 void ortp_logv(int level, const char *fmt, va_list args);
35 #endif