diff options
Diffstat (limited to 'common')
| -rw-r--r-- | common/Makefile.am | 4 | ||||
| -rw-r--r-- | common/log.h | 2 | ||||
| -rw-r--r-- | common/pixman-region.c | 2 |
3 files changed, 6 insertions, 2 deletions
diff --git a/common/Makefile.am b/common/Makefile.am index 1bc5851f..0af033a3 100644 --- a/common/Makefile.am +++ b/common/Makefile.am @@ -18,6 +18,10 @@ AM_CPPFLAGS = \ -DXRDP_PID_PATH=\"${localstatedir}/run\" \ -DXRDP_LOG_PATH=\"${localstatedir}/log\" +if XRDP_DEBUG +AM_CPPFLAGS += -DXRDP_DEBUG +endif + AM_CFLAGS = $(OPENSSL_CFLAGS) module_LTLIBRARIES = \ diff --git a/common/log.h b/common/log.h index 33bb41fd..d1552ccb 100644 --- a/common/log.h +++ b/common/log.h @@ -57,7 +57,7 @@ enum logReturns /* enable threading */ /*#define LOG_ENABLE_THREAD*/ -#ifdef DEBUG +#ifdef XRDP_DEBUG #define LOG_DBG(args...) log_message(LOG_LEVEL_DEBUG, args); #else #define LOG_DBG(args...) diff --git a/common/pixman-region.c b/common/pixman-region.c index b1949950..2d199de8 100644 --- a/common/pixman-region.c +++ b/common/pixman-region.c @@ -79,7 +79,7 @@ #define GOOD_RECT(rect) ((rect)->x1 < (rect)->x2 && (rect)->y1 < (rect)->y2) #define BAD_RECT(rect) ((rect)->x1 > (rect)->x2 || (rect)->y1 > (rect)->y2) -#ifdef DEBUG +#ifdef XRDP_DEBUG #define GOOD(reg) \ do \ |
