|
From: Alex A. <ale...@sp...> - 2001-09-17 00:00:00
|
---
src/helper/log.h | 2 +-
src/helper/system.h | 5 +++++
2 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/src/helper/log.h b/src/helper/log.h
index ebcb8a1..b887e0c 100644
--- a/src/helper/log.h
+++ b/src/helper/log.h
@@ -111,7 +111,7 @@ extern int debug_level;
#define LOG_LEVEL_IS(FOO) ((debug_level) >=3D (FOO))
=20
#define LOG_DEBUG(expr ...) \
- ((debug_level >=3D LOG_LVL_DEBUG) ? log_printf_lf (LOG_LVL_=
DEBUG, __FILE__, __LINE__, __FUNCTION__, expr) , 0 : 0)
+ do {if (debug_level >=3D LOG_LVL_DEBUG) log_printf_lf (LOG_=
LVL_DEBUG, __FILE__, __LINE__, __FUNCTION__, expr);} while (0)
=20
#define LOG_INFO(expr ...) \
log_printf_lf (LOG_LVL_INFO, __FILE__, __LINE__, __FUNCTION=
__, expr)
diff --git a/src/helper/system.h b/src/helper/system.h
index 169df1c..77a867a 100644
--- a/src/helper/system.h
+++ b/src/helper/system.h
@@ -83,4 +83,9 @@
#include <fcntl.h>
#endif
=20
+#ifndef true
+#define true -1
+#define false 0
+#endif
+
#endif // SYSTEM_H
--=20
1.6.6
|