summaryrefslogtreecommitdiff
path: root/src/xine-engine/monitor.h
diff options
context:
space:
mode:
authorJuergen Keil <jkeil@users.sourceforge.net>2001-09-06 18:38:11 +0000
committerJuergen Keil <jkeil@users.sourceforge.net>2001-09-06 18:38:11 +0000
commit94f33ff7e3b7140e78c014be1a68fe9c1ba17814 (patch)
tree56aacd13a3a2f5de4def305cceb2789cfa9bd807 /src/xine-engine/monitor.h
parent8d3fda905911b0b1cdadb33c00fb1f800e8f9320 (diff)
downloadxine-lib-94f33ff7e3b7140e78c014be1a68fe9c1ba17814.tar.gz
xine-lib-94f33ff7e3b7140e78c014be1a68fe9c1ba17814.tar.bz2
Trying to port the xine-lib sources to a non-gcc compiler
CVS patchset: 584 CVS date: 2001/09/06 18:38:11
Diffstat (limited to 'src/xine-engine/monitor.h')
-rw-r--r--src/xine-engine/monitor.h21
1 files changed, 19 insertions, 2 deletions
diff --git a/src/xine-engine/monitor.h b/src/xine-engine/monitor.h
index 38c1be91a..316e855d7 100644
--- a/src/xine-engine/monitor.h
+++ b/src/xine-engine/monitor.h
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: monitor.h,v 1.3 2001/07/18 21:38:17 f1rmb Exp $
+ * $Id: monitor.h,v 1.4 2001/09/06 18:38:12 jkeil Exp $
*
* debug print and profiling functions
*
@@ -47,7 +47,11 @@ extern uint32_t xine_debug;
#define LOOP (xine_debug & 0x8000>>11) // 16
#define GUI (xine_debug & 0x8000>>12) // 8
+#ifdef __GNUC__
#define perr(FMT,ARGS...) {fprintf(stderr, FMT, ##ARGS);fflush(stderr);}
+#else /* C99 version: */
+#define perr(...) {fprintf(stderr, __VA_ARGS__);fflush(stderr);}
+#endif
#ifdef DEBUG
@@ -57,11 +61,20 @@ extern uint32_t xine_debug;
//#define perr(FMT,ARGS...) {fprintf(stderr, FMT, ##ARGS);fflush(stderr);}
+#ifdef __GNUC__
#define xprintf(LVL, FMT, ARGS...) { \
if(LVL) { \
- printf(FMT, ##ARGS); \
+ printf(FMT, ##ARGS); \
+ } \
+ }
+#else /* C99 version: */
+#define xprintf(LVL, ...) { \
+ if(LVL) { \
+ printf(__VA_ARGS__); \
} \
}
+#endif
+
/*
* profiling
*/
@@ -80,7 +93,11 @@ void profiler_print_results ();
//#define perr(FMT,ARGS...)
+#ifdef __GNUC__
#define xprintf(LVL, FMT, ARGS...)
+#else /* C99 version: */
+#define xprintf(LVL, ...)
+#endif
#define profiler_init()
#define profiler_set_label(id, label)