aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-05-29 12:36:29 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-05-29 12:36:29 +0000
commit24cf4a1365a67342ad12dbcc3bf025061c9d27b4 (patch)
tree7177f278fd0b4f868eb4f16e779092836e4fa050 /src
parent42a1a76efe43392f37abdac1259b392fee49c3e8 (diff)
downloadmpd-24cf4a1365a67342ad12dbcc3bf025061c9d27b4.tar.gz
mpd-24cf4a1365a67342ad12dbcc3bf025061c9d27b4.tar.xz
mpd-24cf4a1365a67342ad12dbcc3bf025061c9d27b4.zip
forte C++ compile fixes
git-svn-id: https://svn.musicpd.org/mpd/trunk@1226 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src')
-rw-r--r--src/log.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/log.h b/src/log.h
index 222ae2272..ccb407a07 100644
--- a/src/log.h
+++ b/src/log.h
@@ -29,16 +29,16 @@
extern int logLevel;
-#define ERROR(x, arg...) myfprintf(stderr, x , ##arg)
+#define ERROR(...) myfprintf(stderr, __VA_ARGS__)
-#define LOG(x, arg...) myfprintf(stdout, x , ##arg)
+#define LOG(...) myfprintf(stdout, __VA_ARGS__)
-#define SECURE(x, arg...) if(logLevel>=LOG_LEVEL_SECURE) \
- myfprintf(stdout, x , ##arg)
+#define SECURE(...) if(logLevel>=LOG_LEVEL_SECURE) \
+ myfprintf(stdout, __VA_ARGS__)
-#define DEBUG(x, arg...) if(logLevel>=LOG_LEVEL_DEBUG) \
- myfprintf(stdout, x , ##arg)
+#define DEBUG(...) if(logLevel>=LOG_LEVEL_DEBUG) \
+ myfprintf(stdout, __VA_ARGS__)
void initLog();