fix scan
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Mon, 22 May 2006 13:12:10 +0000 (13:12 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Mon, 22 May 2006 13:12:10 +0000 (13:12 +0000)
lib/dvb/scan.cpp

index 6549e32c4f1ebc017c6bcb1c5a383e5fe2d200cc..89c4735ad1cd914de8158aa417551767ce71cdd5 100644 (file)
@@ -17,8 +17,8 @@
 #include <errno.h>
 
 static bool scan_debug;
-#define SCAN_eDebug(x...) if (scan_debug) eDebug(x)
-#define SCAN_eDebugNoNewLine(x...) if (scan_debug) eDebugNoNewLine(x)
+#define SCAN_eDebug(x...) do { if (scan_debug) eDebug(x); } while(0)
+#define SCAN_eDebugNoNewLine(x...) do { if (scan_debug) eDebugNoNewLine(x); } while(0)
 
 DEFINE_REF(eDVBScan);